Battery state of charge tracking, equivalent circuit selection and benchmarking

ABSTRACT

A method includes calculating a first estimated state of charge (SOC) of a battery at a first time, receiving a voltage value representing a measured voltage across the battery at a second time, calculating a filter gain at the second time, and calculating a second estimated SOC of the battery at the second time based on the first estimated SOC, the voltage value, and the filter gain. Another method includes storing, in a memory, a library of equivalent circuit models representing a battery, determining an operational mode of a battery based on a load associated with the battery, selecting one of the equivalent circuit models based on the determined operational mode, and calculating a state of charge of charge (SOC) of the battery using the selected equivalent circuit model.

This application claims the benefit of U.S. Provisional Patent Application 61/768,472 filed on Feb. 24, 2013 entitled, “BATTERY STATE OF CHARGE TRACKING, EQUIVALENT CIRCUIT SELECTION AND BENCHMARKING”, the entire contents of which are incorporated herein by reference. This application is related to a co-pending application Ser. No. 14/185,790 entitled “BATTERY STATE OF CHARGE TRACKING, EQUIVALENT CIRCUIT SELECTION AND BENCHMARKING”, the entire contents of which are incorporated herein by reference.

FIELD

Embodiments relate to calculating state of charge of a battery.

BACKGROUND

Electrochemical storage devices play an important part of future energy strategy. Indeed, batteries are a viable energy storage technology of today and in the near future. A wide range of devices, such as portable electronic equipment, mobile household appliances, aerospace equipment, etc., are increasingly being powered by batteries. Accurate estimation of, for example, the state of charge of a battery can be difficult using known systems and methods. Thus, a need exists for systems, methods, and apparatus to address the shortfalls of present technology and to provide other new and innovative features.

SUMMARY

One embodiment includes a method. The method includes storing, in a memory, a library of equivalent circuit models representing a battery, determining an operational mode of a battery based on a load associated with the battery, selecting one of the equivalent circuit models based on the determined operational mode, and calculating a state of charge of charge (SOC) of the battery using the selected equivalent circuit model.

Another embodiment includes a system. The system includes a data store configured to store a library of equivalent circuit models representing a battery, a model selection module configured to select an equivalent circuit model based on an operational mode of the battery, and a filter module configured to calculate an estimated state of charge (SOC) of the battery based on the selected equivalent circuit model.

Still another embodiment includes a computer readable medium including code segments. When executed by a processor, the code segments cause the processor to select an equivalent circuit model from a library of equivalent circuit models representing a battery based on an operational mode of the battery; and calculate a state of charge of charge (SOC) of the battery using the selected equivalent circuit model.

BRIEF DESCRIPTION OF THE DRAWINGS

Example embodiments will become more fully understood from the detailed description given herein below and the accompanying drawings, wherein like elements are represented by like reference numerals, which are given by way of illustration only and thus are not limiting of the example embodiments and wherein:

FIGS. 1 and 2 illustrate block diagrams of a battery management system (BMS) according to at least one example embodiment.

FIG. 3 illustrates a block diagram of a signal flow for selecting a battery equivalent model according to at least one example embodiment.

FIG. 4 illustrates a block diagram of a signal flow for calculating a battery state of charge (SOC) according to at least one example embodiment.

FIG. 5 illustrates a block diagram of a battery fuel gauge (BFG) system according to at least one example embodiment.

FIG. 6 illustrates a block diagram of a signal flow for a parameter module of the BFG system according to at least one example embodiment.

FIG. 7 illustrates a block diagram of a signal flow for a SOC module of the BFG system according to at least one example embodiment.

FIG. 8 illustrates a block diagram of the SOC module according to at least one example embodiment.

FIG. 9 illustrates a block diagram of a total least squared (TLS) module of the SOC module according to at least one example embodiment.

FIG. 10 illustrates a block diagram of a recursive least squared (RLS) module of the SOC module according to at least one example embodiment.

FIGS. 11 and 12 illustrate flowcharts of methods according to at least one example embodiment.

FIGS. 13A-13D illustrate schematic diagrams of battery equivalent models according to at least one example embodiment.

FIG. 14 is a diagram that illustrates OCV-SOC characterization curve of a portable Li-ion battery cell.

FIGS. 15A and 15B are graphs that illustrate a load profile.

FIGS. 16A and 16B are graphs that illustrate a simulated load profile.

FIG. 17 is a diagram that illustrates an example system implementation.

FIG. 18 is a diagram that illustrates a user interface that can be used in conjunction with a system implementation.

FIGS. 19A and 19B include graphs that illustrate an example discharge voltage/current profile.

FIGS. 20A and 20B are graphs that illustrate an example Coulomb Counting evaluation method.

FIGS. 21A and 21B are diagrams that illustrate a time to shutdown (TTS) evaluation method.

FIGS. 22A, 22B and 22C are tables representing fuel gauge readings.

It should be noted that these Figures are intended to illustrate the general characteristics of methods and/or structure utilized in certain example embodiments and to supplement the written description provided below. These drawings are not, however, to scale and may not precisely reflect the precise structural or performance characteristics of any given embodiment, and should not be interpreted as defining or limiting the range of values or properties encompassed by example embodiments. For example, the relative thicknesses and positioning of structural elements may be reduced or exaggerated for clarity.

DETAILED DESCRIPTION OF THE EMBODIMENTS

While example embodiments may include various modifications and alternative forms, embodiments thereof are shown by way of example in the drawings and will herein be described in detail. It should be understood, however, that there is no intent to limit example embodiments to the particular forms disclosed, but on the contrary, example embodiments are to cover all modifications, equivalents, and alternatives falling within the scope of the claims. Like numbers refer to like elements throughout the description of the figures.

Accurate estimation of the state of batteries, such as the state of charge (SOC), state of health (SOH), and remaining useful life (RUL), is critical to reliable, safe and widespread use of the devices being powered by batteries. Estimating these quantities is known as battery fuel gauging (BFG). Unlike the hydrocarbon fuels in many of today's automobiles, the storage capacity of a battery is not a constant quantity. Typically, the battery capacity varies with the age of the battery, usage patterns and temperature, making BFG a challenging adaptive estimation problem, requiring modeling and on-line parameter identification of battery characteristics across temperature changes, SOC variations, and age.

FIGS. 1 and 2 illustrate block diagrams of a system 100 according to at least one example embodiment. As shown in FIG. 1, the system 100 includes a battery 105, a battery management system (BMS) 110, a display 120, an unlimited power source 125 (e.g., a wall outlet, an automobile charging station, and the like), and a switch 130.

The BMS 110 may be configured to manage utilization and/or a condition of the battery 105. For example, the BMS 110 may be configured to connect or disconnect the unlimited power source 125 to the battery 105 using switch 130 to charge the battery 105. For example, the BMS 110 may be configured to connect or disconnect a load (not shown) to the battery 105. For example, the BFG 115 may be configured to calculate a state of charge (SOC) and/or state of health (SOH) of the battery 105. The SOC and/or SOH may be displayed (e.g., as a percentage, as a time remaining, etc.) on the display 120.

As shown in FIG. 2, the BMS 110 includes, at least, analog to digital converters (ADC) 205, 220, filters 210, 225, a digital amplifier 215, and a battery fuel gauge (BFG) 115. The BFG 115 includes a memory 230, a processor 235 and a controller 240. At least one of the ADC 205, 220, the filters 210, 225, the digital amplifier 215, and the BFG 115 may be, for example, an application specific integrated circuit (ASIC), a digital signal processor (DSP), a field programmable gate array (FPGA), a processor, and/or so forth. Alternatively, the BMS 110 may be an ASIC, a DSP, an FPGA, a processor, and/or so forth including the shown functional blocks. Alternatively, the system 100 may be implemented as software stored on a memory and executed by, for example, a processor.

The BMS 110 may be configured to convert an analog measurement (e.g., I_(b) and V_(b)) to a digital value using a combination of the digital converters (ADC) 205, 220, the filters 210, 225, and the digital amplifier 215 (e.g., for use by the BFG 115 to calculate SOC and/or SOH). For example, the digital amplifier 215 may be a differential amplifier that generates (e.g., produces) an analog signal based on the voltage drop V_(b) across the battery 105 (e.g., the difference in voltage values between the positive and negative terminal) which is then converted to a filtered digital value using ADC 220 and filter 225.

System 100 may be a subsystem of any system or electronic device that utilizes a battery to provide power. In some implementations, the electronic device can be, or can include, for example, a laptop-type device with a traditional laptop-type form factor. In some implementations, the electronic device can be, or can include, for example, a wired device and/or a wireless device (e.g., Wi-Fi enabled device), a computing entity (e.g., a personal computing device), a server device (e.g., a web server), a toy, a mobile phone, an audio device, a motor control device, a power supply (e.g., an off-line power supply), a personal digital assistant (PDA), a tablet device, e-reader, a television, an automobile, and/or so forth. In some implementations, the electronic device can be, or can include, for example, a display device (e.g., a liquid crystal display (LCD) monitor, for displaying information to the user), a keyboard, a pointing device (e.g., a mouse, a trackpad, by which the user can provide input to the computer).

FIG. 3 illustrates a block diagram 300 of a signal flow for selecting a battery equivalent model according to at least one example embodiment. As shown in FIG. 3, a model selection block 310 receives an input (e.g., voltage and/or current signals from a battery and/or a load) and uses the input (or some variation thereof) to select an equivalent model representing (or corresponding to) a battery from an equivalent model library 305. The equivalent model is then used to calculate a state of charge (SOC) by the state of charge calculator block 315. The equivalent model library 305 may include at least one equivalent model representing a battery. Each equivalent model may be based on an operational mode of the battery (or an equivalent battery). The operational mode may be based on a load associated with the battery. For example, the operational mode may be based on the voltage drop across the load. For example, the operational mode may be based on whether or not the voltage drop across the load is relatively high or low, relatively constant or dynamic, and/or a combination thereof.

The equivalent model (see FIGS. 13A-13D below) may include any combination of resistors, voltages (e.g., voltage drops or voltage sources), resistance-current (RC) circuits, impedance circuits, and/or the like. Accordingly, a mathematical (e.g., formula) equivalent for the equivalent model of the battery may be developed. The equivalent model library 305 may store the mathematical equivalent in relation to the operational mode of the battery. The mathematical equivalent may be used in a calculation of SOC by the state of charge calculator block 315. For example, the mathematical equivalent may be used to determine variables as inputs to a formula used to calculate SOC (or an estimation of SOC). Accordingly a BFG system can select equivalent models based on operational modes to improve calculation efficiency and reduce processing times. Further details are provided below with regard to FIGS. 5-12.

FIG. 4 illustrates a block diagram 400 of a signal flow for calculating a battery state of charge (SOC) according to at least one example embodiment. As shown in FIG. 4, the block diagram 400 includes an extended Kalman filter (EKF) block 405, state of charge (SOC) blocks 410, 420, filter gain parameter blocks 415, 425 and a buffer 430. The EKF block 505 may be configured to calculate a SOC 420 and determine filter gain parameters 425 (e.g., a read and/or calculated SOC variance, a measured voltage, a calculated capacity, variables associated with an equivalent circuit, and/or the like) based on previously calculated SOC(s) 410 and filter gain parameters 415. Accordingly, buffer 430 may be configured to store previously calculated SOC(s) and filter gain parameters in, for example, a processing loop. In other words, a current (or next) SOC may be calculated based on at least one previously calculated SOC. In other words, a SOC calculated at a first time may be used to calculate a SOC at a second (later) time.

In an example implementation, at least two SOC's 410 and/or sets of filter gain parameters 415 may be used. Therefore, a vector of at least two SOC's, an array of at least two SOC's, an average of at least two SOC's, and a mean of at least two SOC's and corresponding filter gain parameters may be used to calculate a next SOC 420 (or SOC at a second time) and determine/calculate corresponding filter gain parameters 425. Accordingly, buffer 430 may be configured to store a plurality of previously calculated SOC(s) 410 and calculated/determined filter gain parameters 415. Accordingly a BFG system can utilize a previously calculated SOC to improve calculation efficiency and reduce processing times. Further details are provided below with regard to FIGS. 5-12.

FIG. 5 illustrates a block diagram of a battery fuel gauge (BFG) 115 system according to at least one example embodiment. As shown in FIG. 5, the BFG 115 includes an estimation module 510, a tracking module 520, a forecasting module 530, an open voltage circuit-state of charge (OCV-SOC) characterization module 540, an offline parameter estimation module 545 and a battery life characterization module 550. In addition, the system includes an offline data collection module 555 and a battery modeling module 560.

The offline data collection module 555 may be configured to measure battery characteristics in a relatively controlled testing environment. For example, open circuit voltage (OCV) measurements and SOC measurements may be collected for the battery 105 (or an equivalent battery) in a test lab environment. For example, the battery 105 (or equivalent battery) may be initialized to a fully charged (e.g., nearly fully charged, substantially fully charged), rested state. OCV and SOC measurements may be made. Then the battery 105 (or equivalent battery) may be slowly discharged with OCV and SOC measurements made at intervals (e.g., regular, periodic, irregular, predetermined) until the battery 105 (or equivalent battery) is fully (or substantially) discharged. The OCV and SOC measurements may be used to determine, calculate or estimate battery parameters (e.g., OCV parameters K_(i)ϵ{K₀;K₁;K₂;K₃;K₄;K₅;K₆;K₇} described below).

Data from the offline data collection module 555 may be used in the battery modeling module 560 to determine, for example, equivalent models for the battery 105 (or equivalent battery) and/or mathematical equivalents for the equivalent models. Data from the offline data collection module 555 may be used in the offline parameter estimation module 545 to determine and/or calculate parameters (e.g., values for components associated with the aforementioned equivalent models) associated with the battery 105 (or equivalent battery). Data from the offline data collection module 555 may be used in the OVC-SOC characterization module 540 to determine and/or calculate OCV and SOC battery parameters (e.g., OCV parameters K_(i)ϵ{K₀;K₁;K₂;K₃;K₄;K₅;K₆;K₇} described below). Data from the offline parameter estimation module 545 may be used in the battery life characterization module 550. For example, data from the offline parameter estimation module 545 may be used to calculate an initial state of health (SOH) characteristic (e.g., maximum SOC) by the battery life characterization module 550.

The display 120 is shown as having a SOC display 565, a SOH display 570, a time to shutdown (TTS) display 575, and a remaining useful life (RUL) display 580. Each display may be, for example, a meter showing a percentage. Values for each of the displays may be calculated or determined by the BFG 115. For example, TTS may be displayed as a time value (e.g., hours and/or minutes) as calculated by the TTS module 532.

The estimation module 510 includes a parameter module 512 and a capacity module 510. The estimation module 510 may be configured to calculate and/or determine values (e.g., parameters and capacity values) that are specific to the battery 105 (or an equivalent battery). In a stable environment (e.g., a test lab) the parameter and capacity values may be fixed (e.g., do not vary). However, in a real world environment the parameter and capacity values may be dynamic or vary. For example, complete SOC tracking solution typically involves (1) estimation of the OCV parameters that form part of the state space model through offline OCV characterization. The OCV-SOC characterization is stable over temperature changes and aging of the battery. Once estimated, these parameters form part of state-space model with known parameters. (2) Estimation of the dynamic electrical equivalent circuit parameters. These parameters have been observed to vary with temperature, SOC and age of the battery and hence should be adaptively estimated while the BFG is operational. (3) Estimation of battery capacity: Even though the nominal capacity of the battery is specified by the manufacturer, the usable battery capacity is known to vary due to errors in the manufacturing process, temperature changes, usage patterns, and aging. And (4) model parameter-conditioned SOC tracking. Once the model parameters are known, the SOC tracking becomes a nonlinear filtering problem. However, it is observed that the resulting state-space model contains correlated process and measurement noise processes. Properly addressing the effect of these correlations will yield better SOC tracking accuracy. Therefore, in example implementations, in order to calculate parameters and capacity, the tracking module 520 may feed back data to the estimation module 510.

Further, typical methods of estimating battery capacity neglect hysteresis effects and assume that the rested battery voltage represents the true open circuit voltage (OCV) of the battery. However, according to example embodiments, the estimation module 510 models hysteresis as an error in the OCV of the battery 105 and employs a combination of real time, linear parameter estimation and SOC tracking technique to compensate for the error in the OCV.

The tracking module 520 includes a SOC module 522 and a SOH module 524. SOC indicates the amount of “fuel” in the battery 105. As described above, SOC is the available capacity expressed as a percentage of some reference (e.g., rated capacity or current capacity). According to example embodiments, SOC module 522 calculates SOC using tracking to compensate for error in the OCV (in combination with the parameter estimation) described in more detail below. SOH indicates the condition of a battery as compared with a new or ideal battery. SOH may be based on charge acceptance, internal resistance, voltage, self-discharge, and/or the like.

The forecasting module 530 includes a TTS module 532 and a RUL module 534. The TTS module 532 and the RUL module 534 may be configured to calculate TTS and RUL based on SOC.

FIG. 6 illustrates a block diagram of a signal flow for a parameter module 412 of the BFG 115 according to at least one example embodiment. A BFG system can select equivalent models based on operational modes to improve calculation efficiency and reduce processing times. As shown in FIG. 6, the parameter module 412 includes an operational mode module 605 and a model selection module 610. The operational mode module 605 may be configured to determine an operational mode (of a battery) based on at least one input from the battery 105 and/or at least one input from the load 615. The at least one input may be based on at least one of a current and a voltage associated with at least one of the battery 105 and the load 615. For example, a voltage drop across the load 615. For example, the operational mode may be based on whether or not the voltage drop across the load 615 is relatively high or low, relatively constant or dynamic, and/or a combination thereof. The model selection module 610 may select an equivalent model (or mathematical equivalent thereof) based on the determined operational mode. For example, the model selection module 610 may generate a query term used to search equivalent model library 305.

In some implementations, several operational modes may be defined or characterized. In an example implementation, four operational modes associated with a battery and the system using the battery are described below.

In a first operational mode, the battery 105 may be attached to a heavy and varying load. In other words, the load 615 may be utilizing a relatively high voltage with a dynamic or varying current draw (or a high voltage load drawing variable current). For example, in a mobile phone, the first operational mode may include a usage environment where the mobile phone usage includes prolonged video play, multimedia and gaming applications, and the like. The equivalent circuit shown in FIG. 13A below may represent a battery attached to a heavy and varying load.

In a second operational mode, the battery 105 may be attached to a dynamic load and/or a variable voltage load. In other words, the load 615 may be utilizing a dynamic or varying voltage. For example, in a mobile phone, the second operational mode may include a usage environment where the mobile phone usage includes regular use for phone calls, web browsing and/or playing video clips. The equivalent circuit shown in FIG. 13B below may represent a battery attached to a dynamic load.

In a third operational mode, the battery 105 may be attached to or drawing a constant current. In other words, the load 615 may be drawing a constant (or substantially constant) load. Alternatively, the battery 105 may be being charged utilizing a constant current. For example, the battery 105 may be disconnected from load 615 for a charging cycle (e.g., the unlimited power source 125 may be connected to the battery 105 using switch 130 to charge the battery 105). The equivalent circuit shown in FIG. 13C below may represent a battery attached to a constant current.

In a fourth operational mode, the battery 105 may be attached to a relatively low voltage load. Alternatively, the battery 105 may be in a cyclical rest state where the battery 105 undergoes light loading followed by a charging and then resting, minimal, or no load. In other words, the load 615 may be utilizing a minimal voltage infrequently. For example, in a mobile phone, the fourth operational mode may include a usage environment where the mobile phone usage includes, after a full (or substantially full) charge, regular pinging of a tower with infrequent phone calls. The equivalent circuit shown in FIG. 13D below may represent a battery attached to a dynamic load.

FIG. 7 illustrates a block diagram of a signal flow for a SOC module 422 of the BFG 115 system according to at least one example embodiment. As shown in FIG. 7, the SOC module 422 includes a buffer block 705, a model estimation block 710, a SOC tracking block 715, and a voltage drop prediction module or block 720.

In example embodiments, hysteresis is modeled as an error in the OCV of the battery 105. The voltage drop v_(D)[k] may represent the voltage across the internal battery model components R₀, R₁, R₂ and x_(h)[k](see FIG. 13A). The term x_(h)[k] may be used to account for the errors in predicted SOC. In other words, x_(h)[k] may be an “instantaneous hysteresis” which can be corrected to zero by adjusting a calculated or estimated SOC. For a calculated or estimated SOC to be equal to SOC, a calculated or estimated x_(h)[k] should be equal to zero. In other words, a calculated or estimated x_(h)[k] not equal to zero indicates an error in the calculated or estimated SOC. The voltage drop model parameter vector (b) includes an element corresponding to calculated or estimated x_(h)[k].

Accordingly, in the flow of FIG. 7, a current calculated or estimated SOC from SOC tracking block 715 is used in voltage block prediction block 720 to compute the voltage drop v_(D)[k]. At least one past voltage drop v_(D)[k] is stored in the buffer 705 and used for estimation of the parameter vector b. A nonzero value of the corresponding calculated or estimated x_(h)[k] in the parameter vector b indicates the presence of instantaneous hysteresis. This implies SOC estimation error. The SOC tracking algorithm of SOC tracking block 715 is configured to correct the SOC whenever the calculated or estimated x_(h)[k] is nonzero. Further details with regard to voltage drop v_(D)[k], hysteresis, estimated x_(h)[k], voltage drop model parameter vector (b) and SOC tracking are described (mathematically) below. Accordingly a BFG system can utilize a previously calculated SOC and SOC error to accurately estimate SOC, improve calculation efficiency and reduce processing times.

FIG. 8 illustrates a block diagram of the SOC module 422 according to at least one example embodiment. As shown in FIG. 8, the SOC module 422 includes an extended Kalman filter (EKF) block 805. The EKF block may be configured to calculate a SOC 845 and an SOC error 840. The EKF block 805 may be configured to calculate the SOC 845 as an estimated SOC using Equation 1 and the SOC error 840 as an estimated SOC error (or variance) using Equation 2. In each of the below equations k refers to an instantaneous iteration, k+1|k refers to a last, a previous or earlier iteration and k+1|k+1 refers to a current, an update, a next or a subsequent iteration. {circumflex over (x)}[k+1|k+1]={circumflex over (x)}[k+1|k]+G[k+1]v _(k+1)  (1)

where:

-   -   {circumflex over (x)}[k+1|k+1] is the estimated SOC for the         current or update iteration;     -   {circumflex over (x)}[k+1|k] is the estimated SOC for the last         or predicted iteration;     -   G[k+1] is the filter gain for the last or predicted iteration;         and     -   v_(k+1) is the load voltage for the last or predicted iteration.         P _(s)[k+1|k+1]=(1−G[k+1]H[k+1])P         _(s)[k+1|k](1−G[k+1]H[k+1])^(T) +G[K+1]²         n _(D)(0)  (2)

where:

-   -   P_(s)[k+1|k+1] is the SOC estimation error or variance for the         current or update iteration;     -   G[k+1] is the filter gain for the last or predicted iteration;     -   H[k+1] is the linearized observation coefficient;

P_(s)[k+1|k] is the SOC estimation error or variance for the last or predicted iteration; and

-   -   n_(D)(0) is the voltage drop noise with zero mean and         correlation at initialization.

The SOC module 422 includes an OCV parameters block 810. The OCV parameters block 810 may be configured to store and/or receive the OCV parameters {K_(i)} from the OVC-SOC characterization module 540. The OCV parameters {K_(i)} are constants in that they are measured offline and change over the life of the battery 105 is negligible (or nonexistent). The OCV parameters are used to calculate the OCV in terms of SOC according to Equation 3.

where:

$\begin{matrix} {{V_{0}\left( {s\lbrack k\rbrack} \right)} = {K_{0} + \frac{K_{1}}{s\lbrack k\rbrack} + \frac{K_{2}}{s^{2}\lbrack k\rbrack} + \frac{K_{3}}{s^{3}\lbrack k\rbrack} + \frac{K_{4}}{s^{4}\lbrack k\rbrack} + {K_{5}{s\lbrack k\rbrack}} + {K_{6}{\ln\left( {s\lbrack k\rbrack} \right)}} + {K_{7}{\ln\left( {1 - {s\lbrack k\rbrack}} \right)}}}} & (3) \end{matrix}$

-   -   s[k] is the SOC; and     -   V₀(s[k]) is the open circuit voltage (OCV);

The SOC module 422 includes a voltage drop model block 825. The voltage drop block 825 may be configured to calculate voltage drop across the load using the voltage drop model (discussed above) according to Equation 4 or 5. Z _(v)[k]=V _(o)(x _(s)[k])+a[k]^(T) b+n _(D)[k]  (4) Z _(v)[k]=V _(o)(x _(s)[k])+â[k]^(T) {circumflex over (b)}+n _(D)[k]  (5)

where:

-   -   Z_(v)[k] is the measured voltage;     -   V_(o)(x_(s) [k])] is the open circuit voltage (OCV);     -   a[k]^(T) is the voltage drop model;     -   b is the voltage drop model parameter vector;     -   â[k]^(T) is the estimated voltage drop model;     -   {circumflex over (b)} is the estimated voltage drop model         parameter vector; and     -   n_(D) [k] is the voltage drop observation noise.

The voltage drop model may vary based on a selected equivalent circuit model as described above. The selected equivalent circuit model and/or the voltage drop model may be read from data store 855. For example data store 855 may include the equivalent model library 305.

The EKF (module or) block 805 may be configured to calculate the SOC 845 as an estimated SOC using Equation 1 and store the resultant SOC 845 in buffer 850. The EKF block 805 may be configured to calculate the SOC error 840 as an estimated SOC error (or variance) using Equation 2 and store the resultant SOC error 840 in buffer 850. The stored SOC and SOC error may be read as SOC 815 and SOC error 820 the stored SOC 845 and SOC error 840. Accordingly, the EKF block may calculate SOC 845 and SOC error 840 recursively (e.g., in a loop) such that a subsequent (update, next, and/or later in time) SOC 845 and SOC error 840 calculation may be based on at least one previous (current, last or earlier in time) SOC 815 and SOC error 820 calculation.

As shown in FIG. 8, recursive least squared (RLS) block 830 and total least squared (TLS) block 835 may generate inputs to the EKF block 805. The RLS block may generate an initial the estimated voltage drop model parameter vector (which may include at least one voltage drop model parameter) and the TLS block 835 may generate an initial estimated capacity. The initial the estimated voltage drop model parameter vector and the initial estimated capacity may be generated for each loop. In an example implementation, a change in the initial the estimated voltage drop model parameter vector and the initial estimated capacity may become negligible as the number of iterations (k) increases.

FIG. 9 illustrates a block diagram of a total least squared (TLS) block 835 of the SOC module 422 according to at least one example embodiment. As shown in FIG. 9, the TLS block 635 includes a buffer 910 and a TLS calculation module 915. The buffer 910 is configured to receive, store and output SOC data e.g., delta (or change in) SOC data 920 for use by the TLS calculation module 915. The buffer 910 is further configured to receive, store and output delta (or change in) coulomb data 925 use by the TLS calculation module 915. The buffer 910 may receive current data 905 as, for example, coulomb counting data based on measured current associated with the battery 105.

The TLS calculation module 915 may be configured to calculate capacity 930 of the battery 105 based on the delta SOC 920 and the delta coulomb 925. For example, the TLS calculation module 915 may calculate capacity 930 using Equation 6. Derivation of Equation 6 is shown in more detail below.

$\begin{matrix} {{{\hat{C}}_{TLS}\lbrack k\rbrack} = \frac{s_{H}^{k}\left( {1,2} \right)}{{s_{H}^{k}\left( {1,1} \right)} - {\Delta^{k}\left( {2,2} \right)}}} & (6) \end{matrix}$ where:

-   -   Ĉ_(TLS) [k] is the estimated capacity;     -   S_(H) ^(k)(i,j) is the covariance of an augmented observation         matrix; and     -   Δ^(k)(2,2) is a diagonal 2×2 matrix of non-negative eigenvalues;

FIG. 10 illustrates a block diagram of a recursive least squared (RLS) block 830 of the SOC module 422 according to at least one example embodiment. As shown in FIG. 10, the RLS block 635 includes a buffer 1005 and a RLC calculation module 1010. The buffer 1005 is configured to receive and store SOC 815, SOC error 820 and voltage drop data (e.g., Z[k] or OCV) as output from the voltage drop model block 825. The buffer 1005 is configured to output a voltage drop 1015 and a current and capacitance (I&C) matrix 1020.

The RLC calculation module 1010 may be configured to calculate initialization parameters 1025 based on the voltage drop 1015 and the (I&C) matrix 1020. For example, the RLC calculation module 1010 may calculate initialization parameters 1025 using Equation 7. Derivation of Equation 7 is shown in more detail below.

$\begin{matrix} {b = \left\{ \begin{matrix} {{b(1)}\overset{\Delta}{=}{{\alpha(k)} = {\alpha_{1} + \alpha_{2}}}} \\ {{b(2)}\overset{\Delta}{=}{{\beta(k)} = {\alpha_{1} + \alpha_{2}}}} \\ {{b(3)} = R_{0}} \\ {{b(4)}\overset{\Delta}{=}{{\hat{R}}_{1} = {{\left( {\alpha_{1} + \alpha_{2}} \right)R_{0}} - {\left( {1 - \alpha_{1}} \right)R_{1}} - {\left( {1 - \alpha_{2}} \right)R_{2}}}}} \\ {{b(5)}\overset{\Delta}{=}{{\hat{R}}_{2} = {{\left( {\alpha_{1}\alpha_{2}} \right)R_{0}} - {{\alpha_{2}\left( {1 - \alpha_{1}} \right)}R_{1}} - {{\alpha_{1}\left( {1 - \alpha_{2}} \right)}R_{2}}}}} \\ {{b(6)}\overset{\Delta}{=}{{\hat{h}\lbrack k\rbrack} = {{x_{h}\lbrack k\rbrack} - {{\alpha(k)}{x_{h}\left\lbrack {k + 1} \right\rbrack}} + {{\beta(k)}{x_{h}\left\lbrack {k - 2} \right\rbrack}}}}} \end{matrix} \right.} & (7) \end{matrix}$

where:

-   -   α_(i) is the current decay coefficient in the R₁C₁ circuit;     -   β_(i) is the current decay coefficient in the R₂C₂ circuit;     -   {circumflex over (R)}₁ is the estimated resistance value of R₁;     -   {circumflex over (R)}₂ is the estimated resistance value of R₂;     -   ĥ[k] is the estimated hysteresis voltage of the battery; and     -   x_(h) [k] is the instantaneous hysteresis;

Noting as described with regard to FIG. 7 above, estimated hysteresis voltage of the battery should be zero. Accordingly, in example implementations b(6) in Equation 7 should be zero using SOC tracking block 715 to remove (or substantially remove) error due to hysteresis using SOC tracking. Accordingly, the SOC estimate is more accurate because hysteresis may be accounted for.

In FIGS. 8-10, buffer 1005 length may be L_(b) for parameter estimation and buffer 905 length may be L_(c) for capacity estimation. The EKF block 805 iterates for every k whereas the RLS 830 iterates for every k which is an integer multiple of L_(b), and TLS 835 iterates for every k which is an integer multiple of L_(c) where k is the time index. The BFG estimates all the required model parameters and battery capacity required for SOC tracking except for the OCV parameters (that are estimated offline) and voltage and current measurement error standard deviations σ_(v), σ_(i) that come from the calibration of measurement instrumentation circuitry. The RLS blocks do not require any external initial conditions—just setting λ=1 provides a robust LS estimate as initializations, i.e., {circumflex over (b)}_(RLS)[K_(b)] and Ĉ_(TLS)[K_(c)] where

$\kappa_{b} = {{\left\lfloor \frac{k}{L_{b}} \right\rfloor\mspace{14mu}{and}\mspace{14mu}\kappa_{c}} = \left\lfloor \frac{k}{L_{c}} \right\rfloor}$ are the batch numbers. The mathematical proof of the EKF block 805 is described below.

FIGS. 11 and 12 illustrate flowcharts of methods according to at least one example embodiment. The steps described with regard to FIGS. 11 and 12 may be performed due to the execution of software code stored in a memory (e.g., memory 230) associated with an apparatus (e.g., the BMS 110 as shown in FIGS. 1 and 2) and executed by at least one processor (e.g., processor 235) associated with the apparatus. However, alternative embodiments are contemplated such as a system embodied as a special purpose processor. Although the steps described below are described as being executed by, for example, a processor, the steps are not necessarily executed by a same processor. In other words, at least one processor may execute the steps described below with regard to FIGS. 11 and 12.

FIG. 11 illustrates a flowchart of a method for selecting an equivalent model representing a battery for use in calculating an estimated SOC. As shown in FIG. 11, in step S1105 a library of equivalent circuit models representing a battery is stored in a memory. For example, using the offline data collection module 555, data associated with battery 105 (or an equivalent battery) can be collected. Using the data and general circuit tools, at least one equivalent circuit representing the battery may be generated. The equivalent circuit may include any combination of at least one equivalent voltage, resistance, capacitance and/or impedance equivalent. See, for example, FIGS. 13A-13D below. A mathematical equivalent for each equivalent circuit can also be generated. The equivalent circuit and/or the mathematical equivalent may be stored in, for example, equivalent model library 305.

In step S1110 an operational mode of a battery is determined based on a load associated with the battery. For example, each equivalent model may be based on an operational mode of the battery (or an equivalent battery). The operational mode may be based on a load associated with the battery. For example, the operational mode may be based on the voltage drop across the load. For example, the operational mode may be based on whether or not the voltage drop across the load is relatively high or low, relatively constant or dynamic, and/or a combination thereof. Therefore, the operational mode may be determined based on a current and/or a voltage associated with the battery and/or a load associated with the battery.

In step S1115 one of the equivalent circuit models for the determined mode is selected based on the determined mode. For example, the equivalent model library 305 may be searched based on the determined operational mode. For example, the equivalent circuit and/or the mathematical equivalent representing the battery may be stored in equivalent model library 305 in correspondence with an operational mode identification (e.g., a unique name or a unique identification number). Accordingly, determining the operational mode may include determining an operational mode identification which is then used to search the equivalent model library 305. Selecting the equivalent circuit can include selecting the equivalent circuit or mathematical equivalent returned by the search of the equivalent model library 305.

In step S1120 a state of charge of charge (SOC), or an estimated SOC, of the battery is calculated using the selected equivalent circuit model. For example, as described above, calculating the SOC may be based on a voltage drop model parameter vector (b). The voltage drop model parameter vector may have parameters that are based on the equivalent circuit of the battery (see Equation 7 above). Accordingly, the determined voltage drop model parameter vector may more or less complex based on the equivalent circuit. For example, as described below, an equivalent circuit may not include RC circuit elements because the capacitor charges and bypasses the resistance. Accordingly, b(3) may be the only remaining voltage drop model parameter vector element. Thus simplifying the calculation of the SOC or estimated SOC. Further, a voltage across the battery 105 terminals v[k], which may be used in calculating the SOC or estimated SOC may be based on the equivalent circuit model. Equations relating v[k], SOC and the equivalent circuit model are described in more detail below.

FIG. 12 illustrates a flowchart of a method for calculating an estimated SOC using a recursive filter. As shown in FIG. 12, in step S1205 a stored estimated state of charge (SOC) of a battery is read from a buffer. For example, the buffer 850 may have stored in it at least one SOC error and SOC calculated in a previous iteration of the steps described with regard to this flowchart. At least one of the stored SOC values may be read from buffer 850.

In step S1210 a measured voltage across the battery is read. For example, a voltage (e.g., v[k] shown in FIGS. 13A-13D below) may be read or determined using, for example, digital amplifier 215. In one example implementation, the voltage is stored in a buffer. Accordingly, different iterations can use different voltage measurements. In other words, a previous (in time) voltage measurement can be used in a current iteration or v[k+1] could be used in iteration k+2.

In step S1215 a filter gain is calculated. For example, as described briefly above and in more detail below, filter gain for the EKF block 805 (e.g., G[k+1]) is calculated. Filter gain may be based on at least one capacity value calculated using a weighted least squared algorithm. For example, filter gain may be based on at least one capacity value calculated using at least one of a weighted recursive least squared (RLS) algorithm and a total least squared (TLS) algorithm. Filter gain may be based on a capacity value calculated using a weighted RLS algorithm based on a SOC tracking error covariance and a current measurement error standard deviation. Filter gain may be based on an estimated SOC variance. Filter gain may be based on a capacity value calculated using a TLS algorithm based on a recursive updating of a covariance matrix. Filter gain may be based on a capacity value calculated using an open circuit voltage (OCV) look-up. Each of the SOC tracking error covariance, current measurement error standard deviation, SOC variance, covariance matrix and OCV are described in more detail (e.g., mathematically) below.

In step S1220 an estimated SOC of the battery is calculated based on the stored SOC of the battery, the voltage across the battery, and the filter gain. For example, the estimated SOC may be equal to the filter gain times the digital voltage value plus the stored estimated SOC. In step S1225 the calculated estimated SOC is stored in the buffer (e.g., buffer 850). If further calculating of the estimated SOC is necessary and/or desired (S1230), processing returns to step S1205. For example, further calculations may be necessary and/or desired if the battery 105 is in continual use, if SOC error exceeds a desired value and further iterations may reduce the error, a battery test is in process and/or the like.

FIGS. 13A-13D illustrate schematic diagrams of battery equivalent models according to at least one example embodiment. FIGS. 13A-13D will be referred to as necessary below to describe one or more example implementations. As shown in FIGS. 13A-13D, equivalent models representing a battery 1300-1, 1300-2, 1300-3, 1300-4 may include any combination of resistors 1315, 1325, 1340, capacitors, 1330, 1345 and equivalent voltage sources 1305, 1310. Voltage 1355 represents the voltage drop across the battery when loaded. Currents 1320, 1335 and 1350 represent current flowing through (or to) an element of the equivalent model. For example, current 1350 represents the current flowing to a load.

A resistor and a capacitor may define an RC circuit. For example, resistor 1325 and 1330 define an RC circuit. In some example implementations, a capacitor may be fully charged and short causing an RC circuit to effectively disappear from the equivalent model. For example, in equivalent model representing a battery 1300-2 the RC circuit defined by resistor 1340 and capacitor 1345 is not in the model because capacitor 1345 is fully charged forming a short circuit. In some example embodiments there is no (or minimal) hysteresis associated with the battery (e.g., the battery is at rest or drawing minimal load). Therefore, as shown in equivalent model representing a battery 1300-4 equivalent voltage source 1310 is not in the model because of the lack of hysteresis.

This disclosure continues by describing details of example implementations. The details may include development (e.g., mathematical proof or simplification) of at least one of the above equations. The equations may be repeated for clarity, however, the equations will retain the equation number shown in a bracket ([ ]). Beginning with real time model identification, which may reference the following notations.

a[k]^(T) Observation model

A^(k) Consecutive observations of a[k]^(T) in batch κ, stacked in a matrix

b[k] Observation model parameter

{circumflex over (b)}_(RLs)[κ] LS estimate of model parameters

{circumflex over (b)}_(RLS)[κ] RLS estimate of model parameter

i[k] Current through the battery

K_(i) OCV parameters: K₀, K₁, K₂, K₃, K₄, K₅, K₆ K₇

L_(b) Length of batch for parameter estimation

n_(i)[k] Current measurement error

n_(v)[k] Voltage measurement error

P_(b) [κ] Covariance matrix of the LS estimator

R₀ Battery internal series resistance

R₁ Battery internal resistance in R₁C₁ circuit

R₂ Battery internal resistance in R₂C₂ circuit

v[k] Voltage across the battery

v_(D)[k] Voltage drop

v^(K) _(D) k^(th) batch of consecutively observed voltage drops in vector form

V_(D)[z] z—transform of the voltage drop

x_(i) ₁ [k] Current through R₁

x_(i) ₂ [k] Current through R₂

x_(s)[k] State of charge (SOC) s[k]

{circumflex over (x)}_(s)[k] Estimate of x[k]

z_(i)[k] Measured current through the battery

z_(v)[k] Measured voltage across the battery

Δ Sampling time

ε_(b) _(i) (k) LS fitting error

ε_(C) _(i) [k] Percentage estimation error of C_(i)

ε_(R) _(i) [k] Percentage estimation error of R_(i)

Σ_(D) ^(κ) Voltage drop observation noise covariance

Elements of an SOC tracking algorithm may include:

-   -   a. Estimation of the OCV parameters: The OCV-SOC         characterization is stable over temperature changes and aging of         the battery when normalized by age and age dependent battery         capacity.     -   b. Estimation of the dynamic electrical equivalent circuit         parameters: These parameters have been observed to vary with         temperature, SOC and age of the battery and hence should be         adaptively estimated while the BFG is operational.     -   c. Estimation of battery capacity: Even though the nominal         capacity of the battery is specified by the manufacturer, the         usable battery capacity is known to vary due to errors in the         manufacturing process, temperature changes, load patterns, and         aging.     -   d. Model parameter-conditioned SOC tracking: Once the model         parameters are known, the SOC tracking becomes a nonlinear         filtering problem.

Example embodiments allow for the real time, linear estimation of dynamic equivalent circuit parameters for batteries. Improving existing approaches for battery equivalent circuit modeling and parameter estimation are accomplished in this example implementation by addressing the following issues:

-   -   a. Some models consider resistance-only and are unsuitable for         dynamic loads.     -   b. They employ nonlinear approaches for system identification.     -   c. Require initial parameter estimates for model identification         methods     -   d. A single dynamic equivalent model is assumed to represent all         battery modes of operation

In this example implementation, the above four issues are addressed and summarized below as:

-   -   a. An online, linear approach for model parameter estimation         without estimating the parameters of the exact physical         representation of the battery equivalent circuit. SOC tracking         state-space model leverages an estimation of modified parameters         that can be linearly estimated.     -   b. Applicability to wide variety of batteries without requiring         any initialization values or calibrations: Due to the         adaptability of the example state-space model, the proposed SOC         tracking approach does not require any offline initializations         of model parameters. A least squares (LS) method provides         initializations (or re-initializations) of parameters whenever         required and a block recursive least squares (RLS) is employed         to continuously track the model parameters. Further, a modified         open circuit voltage (OCV) model is shown to be valid across         different battery models, different temperatures and different         load conditions. This allows an example BFG to be applicable in         a plug-and-play fashion on a wide range of batteries without         requiring any other additional information about them.     -   c. Possibility for seamless SOC tracking through different modes         of the battery. Four different battery equivalent models may be         identified in order to reflect very light loading or rest state,         constant current or low frequency loading, dynamic loads and         varying heavy loads. Four (slightly) different dynamic         equivalent models are identified in order to best match these         modes as well. These models can be used for seamless SOC         tracking regardless of the mode changes in the battery         operation.     -   d. Hysteresis modeling which obviates the need for hysteresis         modeling: Example implementations recognize that it is nearly         impossible to model hysteresis offline (perfectly) because         hysteresis is a function of SOC∈[0 1] and load current I∈R.         Therefore, according to example embodiments, in a voltage drop         model, the hysteresis is modeled as the error in the OCV and the         online filtering approach continuously tries to fill the gap by         adjusting SOC (to the correct value.)

Real time model identification includes real time model parameter estimation using equivalent circuits. FIG. 13A is an equivalent circuit of an example battery (e.g., battery 105). When the battery is at rest, V₀(s[k]) is the OCV of the battery. The OCV uniquely depends on the SOC of the battery, s[k]∈[0,1]. When the battery is active, for example, when there is current activity, the behavior of the battery is represented through the dynamic equivalent circuit consisting of a hysteresis component h[k], a series resistance R₀ and two parallel RC circuits in series, (R₁,C₁) and (R₂,C₂). The discrete time is indicated using [k].

In FIG. 13A, the measured current through the battery is written as: z _(i)[k]=i[k]+n _(i)[k]  (8)

where i[k] is the true current through the battery and n_(i)[k] is the current measurement noise which is assumed to be zero mean and has standard deviation (s.d.) σ_(i). The measured voltage across the battery is: z _(v)[k]=v[k]+n _(v)[k]  (9)

where v[k] is the true voltage across the battery and n_(v)[k] is the voltage measurement noise which is assumed to be zero mean with s.d. σ_(v).

Writing the voltage drop of the battery across the internal components R₀, R₁, R₂ and h[k] in the following form: v _(D)[k]

z _(v)[k]−V ₀[s[k]]=i[k]R ₀ +x _(i) ₁ [k]R ₁ +x _(i) ₂ [k]R ₂ +x _(h)[k]+n _(v)[k]  (10)

where the currents through the resistors R₁ and R₂ can be written in the following form

$\begin{matrix} {{x_{i_{1}}\left\lbrack {k + 1} \right\rbrack}\overset{\Delta}{=}{{i_{i}\left\lbrack {k + 1} \right\rbrack} = {{\alpha_{1}{i_{1}\lbrack k\rbrack}} + {\left( {1 - \alpha_{1}} \right){i\lbrack k\rbrack}}}}} & (11) \\ {{{x_{i_{2}}\left\lbrack {k + 1} \right\rbrack}\overset{\Delta}{=}{{i_{2}\left\lbrack {k + 1} \right\rbrack} = {{\alpha_{2}{i_{2}\lbrack k\rbrack}} + {\left( {1 - \alpha_{2}} \right){i\lbrack k\rbrack}}}}}{{where},}} & (12) \\ {{\alpha_{1}\overset{\Delta}{=}{e - \frac{\Delta}{R_{1}C_{1}}}};} & (13) \\ {{\alpha_{2}\overset{\Delta}{=}{e - \frac{\Delta}{R_{2}C_{2}}}};{and}} & (14) \end{matrix}$

Δ is the sampling interval.

By substituting the measured current z_(i)[k] for i[k], the currents in (11) and (12) can be rewritten as follows: x _(i) ₁ [k+1]=α₁ x _(i) ₁ [k]+(1−α₁)z _(i)[k]−(1−α₁)n _(i)[k]  (15) x _(i) ₂ [k+1]=α₂ x _(i) ₂ [k]+(1−α₂)z _(i)[k]−(1−α₂)n _(i)[k]  (16)

Now, using (8), (10) can be rewritten in the z-domain as follows: V _(D)[z]=Z _(i)[z]R ₀ +R _(i) ₁ [z]R ₁ +X _(i) ₂ [z]R ₂ +X _(h)[z]+N _(v)[z]−R ₀ N _(i)[z]  (17)

Next, rewriting (15) in z-domain: zX _(i) ₁ [z]=α₁ X _(i) ₁ [z]+(1−α1)Z _(i)[z]−(1−α₁)N _(i)[z]  (18)

which yields

$\begin{matrix} {{X_{i_{1}}\lbrack z\rbrack} = {\frac{1 - \alpha_{1}}{z - \alpha_{1}}\left( {{Z_{i}\lbrack z\rbrack} - {N_{i}\lbrack z\rbrack}} \right)}} & (19) \end{matrix}$

and similarly for (16),

$\begin{matrix} {{X_{i_{2}}\lbrack z\rbrack} = {\frac{1 - \alpha_{2}}{z - \alpha_{2}}\left( {{Z_{i}\lbrack z\rbrack} - {N_{i}\lbrack z\rbrack}} \right)}} & (20) \end{matrix}$

By substituting (19) and (20) into (17):

$\begin{matrix} {{V_{D}\lbrack z\rbrack} = {{{Z_{i}\lbrack z\rbrack}R_{0}} + {\frac{1 - \alpha_{1}}{z - \alpha_{1}}{Z_{i}\lbrack z\rbrack}R_{1}} + {\frac{1 - \alpha_{2}}{z - \alpha_{2}}{Z_{i}\lbrack z\rbrack}R_{2}} + {X_{h}\lbrack z\rbrack} + {N_{v}\lbrack z\rbrack} - {\left( {R_{0} + {\frac{1 - \alpha_{1}}{z - \alpha_{1}}R_{1}} + {\frac{1 - \alpha_{2}}{z - \alpha_{2}}R_{2}}} \right){N_{i}\lbrack z\rbrack}}}} & (21) \end{matrix}$

Rearranging (21) and converting it back to time domain: v _(D)[k]=αv _(D)[k−1]−αv _(D)[k−2]+R ₀ z _(i)[k]+Ř ₁ z _(i)[k−1]−Ř ₂ z _(i)[k−2]+ h [k]+ n _(i)[k]+ n _(v)[k]  (22) where, α=α₁+α₂,  (23) β=α₁α₂,  (24) {circumflex over (R)} ₁=(α₁+α₂)R ₀−(1−α₁)R ₁−(1−α₂)R ₂,  (25) {circumflex over (R)} ₂=α₁α₂ R ₀−α₂(1−α₁)R ₁ −a ₁(1−α₂)R ₂,  (26) h [k]=x _(h)[k]−αx _(h)[k−1]+βx _(h)[k−2],  (27) n _(v)[k]=n _(v)[k]−αn _(v)[k−1]+βn _(v)[k−2], and  (28) n _(i)[k]=−R ₀ n _(i)[k]+{circumflex over (R)} _(l) n _(i)[k−1]−{circumflex over (R)} ₂ n _(i)[k−2].   (29)

Now, rewriting (22) in the following form: v _(D)[k]=[k]^(T) +n _(D)[k]  (30)

where the observation model a[k]^(T) and the model parameter vector b are given by:

$\begin{matrix} {{a\lbrack k\rbrack}^{T} = {4^{{\lbrack k\rbrack}^{T}}\overset{\Delta}{=}\begin{bmatrix} {v_{D}\left\lbrack {k - 1} \right\rbrack} & {- {v_{D}\left\lbrack {k - 2} \right\rbrack}} & {z_{i}\lbrack k\rbrack} & {z_{i}\left\lbrack {k - 1} \right\rbrack} & {- {z_{i}\left\lbrack {k - 2} \right\rbrack}} & 1 \end{bmatrix}}} & (31) \\ {\mspace{79mu}{b = {4\overset{\Delta}{=}\begin{bmatrix} \alpha & \beta & R_{0} & {\overset{ˇ}{R}}_{1} & {\overset{ˇ}{R}}_{2} & H \end{bmatrix}^{T}}}} & (32) \end{matrix}$

where the subscript 4 indicates the above model corresponding to Model 4 of the four models shown in FIGS. 13A-13B.

The noise in the voltage drop observation in (30) is written as: n _(D)[k]

n _(i)[k]+^(−n) _(v)[k]  (33)

which has autocorrelation given by:

$\begin{matrix} {{{R_{n_{D}}(l)} \cong {E\left\{ {{n_{D}\lbrack k\rbrack}{n_{D}\left\lbrack {k - l} \right\rbrack}} \right\}}} = \left\{ \begin{matrix} {{\left( {1 + \alpha^{2} + \beta^{2}} \right)\sigma_{v}^{2}} + {\left( {R_{0}^{2} + {\overset{\Cup}{R}}_{1}^{2} + {\overset{\Cup}{R}}_{2}^{2}} \right)\sigma_{i}^{2}}} & {{l} = 0} \\ {{{- {\alpha\left( {1 + \beta} \right)}}\sigma_{v}^{2}} - {{{\overset{\Cup}{R}}_{1}\left( {R_{0} + {\overset{\Cup}{R}}_{2}} \right)}\sigma_{i}^{2}}} & {{l} = 1} \\ {{\beta\sigma}_{v}^{2} + {R_{0}{\overset{\Cup}{R}}_{2}\sigma_{i}^{2}}} & {{l} = 2} \\ 0 & {{l} > 2} \end{matrix} \right.} & (34) \end{matrix}$

and it is assumed that the hysteresis component is a constant during the batch of time intervals of length L_(b), for example, h [l]=x _(h)[l]−(α₁+α₂)x _(h)[l−1]+α₁α₂ x _(h)[l−2]≈H,l=k−L _(b)+1, . . . ,k  (35)

Now, four different “modes” of battery operations and appropriate battery equivalent models that match these modes can be described.

-   -   a. Mode 1—Light loading or rest state: When the battery         undergoes only light loading and then followed by charging and         then resting, the hysteresis component will be negligibly small.         An example of this mode will be a cellular phone that, after         being fully charged, spends almost all its time until the next         charging event pinging the tower except for the possibility of         few phone calls. A single resistor (see FIG. 13D), fits this         mode well.     -   b. Mode 2—Constant current operation: When the current through         the battery is constant, the capacitors in the RC circuits         become fully charged. As a result, from a parameter estimation         point of view, the resultant circuit can be considered as a         single resistor and a hysteresis/bias component (see FIG. 13C).         The constant current charging of the battery is a good example         for this mode.     -   c. Mode 3—Dynamic loading: When the battery is in this mode,         there is significant load of differing magnitudes. Example: a         smart phone that is being regularly used for phone calls, web         browsing, video clips etc. The battery equivalent shown in FIG.         13B fits this scenario well.     -   d. Mode 4—Heavy and varying usage: For a mobile phone, heavy and         varying usage includes prolonged video play, multimedia and         gaming applications, etc. FIG. 13A fits this scenario well.

Note that different model complexities of the dynamic equivalent circuit can be represented by changing only [k]^(T). The definitions of [k]T and for each model are shown below. For each of the above model complexities, the noise term n_(D)[k] is expressed in terms of n _(i)[k] and n _(v)[k] as follows:

$\begin{matrix} {{{\overset{\_}{n}}_{v}\lbrack k\rbrack} = \left\{ \begin{matrix} {n_{v}\lbrack k\rbrack} & {{Model}{\mspace{11mu}\;}1} \\ {n_{v}\lbrack k\rbrack} & {{Model}\mspace{14mu} 2} \\ {{n_{v}\lbrack k\rbrack} - {\alpha_{1}{n_{v}\left\lbrack {k - 1} \right\rbrack}}} & {{Model}{\;\mspace{11mu}}3} \\ {{n_{v}\lbrack k\rbrack} - {\left( {\alpha_{1} + \alpha_{2}} \right){n_{v}\left\lbrack {k - 1} \right\rbrack}} + {\alpha_{1}\alpha_{2}{n_{v}\left\lbrack {k - 2} \right\rbrack}}} & {{Model}\mspace{14mu} 4} \end{matrix} \right.} & (36) \\ {{{\overset{\_}{n}}_{i}\lbrack k\rbrack} = \left\{ \begin{matrix} {{- R_{0}}{n_{i}\lbrack k\rbrack}} & {{Model}\mspace{14mu} 1} \\ {{- R_{0}}{n_{i}\lbrack k\rbrack}} & {{Model}\mspace{14mu} 2} \\ {{{- R_{0}}{n_{i}\lbrack k\rbrack}} + {{\overset{\sim}{R}}_{1}{n_{i}\left\lbrack {k - 1} \right\rbrack}}} & {{Model}\mspace{14mu} 3} \\ {{{- R_{0}}{n_{i}\lbrack k\rbrack}} + {{\overset{\Cup}{R}}_{1}{n_{i}\left\lbrack {k - 1} \right\rbrack}} - {{\overset{\Cup}{R}}_{2}{n_{i}\left\lbrack {k - 2} \right\rbrack}}} & {{Model}\mspace{14mu} 4} \end{matrix} \right.} & (37) \end{matrix}$

where, α=α₁+α₂  (38) β=α₁α₂  (39) {tilde over (R)} ₁=α₁ R ₀−(1−α₁)R ₁  (40) The following discussion relates to least squared estimation of time-invariant dynamic model parameters. Denoting the true SOC at time k as:

$\begin{matrix} {{x_{S}\lbrack k\rbrack}\overset{\Delta}{=}{s\lbrack k\rbrack}} & (41) \end{matrix}$

An SOC tracking algorithm developed can be used to obtain {circumflex over (x)}_(s)[k|k], an updated estimate of x_(s)[k]. Now, the voltage drop v_(D)[k] in (10) can be written as: v _(D)[k]=z _(v)[k]−V ₀({circumflex over (x)} _(s)[k|k])  (42)

where V₀({circumflex over (x)}_(s)[k|k]) denotes the estimated open circuit voltage (OCV) of the battery which can be described as a function of estimated SOC. The following OCV-SOC relationship may be adopted:

$\begin{matrix} {{V_{0}\left( {{\hat{x}}_{s}\left\lbrack {k\text{|}k} \right\rbrack} \right)} = {K_{0} + \frac{K_{1}}{{\hat{x}}_{s}\left\lbrack {k\text{|}k} \right\rbrack} + \frac{K_{2}}{{{\hat{x}}_{s}\left\lbrack {k\text{|}k} \right\rbrack}^{2}} + \frac{K_{3}}{{{\hat{x}}_{s}\left\lbrack {k\text{|}k} \right\rbrack}^{3}} + \frac{K_{4}}{{{\hat{x}}_{s}\left\lbrack {k\text{|}k} \right\rbrack}^{4}} + {K_{5}{{\hat{x}}_{s}\left\lbrack {k\text{|}k} \right\rbrack}} + {K_{6}{\ln\left( {{\hat{x}}_{s}\left\lbrack {k\text{|}k} \right\rbrack} \right)}} + {K_{7}{\ln\left( {1 - {{\hat{x}}_{s}\left\lbrack {k\text{|}k} \right\rbrack}} \right)}}}} & (43) \end{matrix}$

The OCV parameters K_(i)∈{K₀,K₁,K₂,K₃,K₄,K₅,K₆,K₇} can be estimated offline through the procedure described in in detail below. By considering a batch of L_(b) observations, (30) can be rewritten as follows: v _(D) ^(κ) =A ^(κ) +n _(D) ^(κ)  (44)

where κ is the batch number, v _(D) ^(κ)=[v _(D)[κL _(b) −L _(b)+1]v _(D)[κL _(b) −L _(b)+2] . . . v _(D)[κL _(b)]]^(T)  (45) A ^(κ)=[[κL _(b) −L _(b)+1][κL _(b) −L _(b)+2] . . . [κL _(b)]]^(T)  (46)

and the noise n_(D) ^(κ) has the following covariance Σ_(D) ^(κ) =E{n _(D) ^(κ) n _(D) ^(κ) ^(T})   (47)

where Σ_(D) ^(κ) is a pentadiagonal Toeplitz matrix for which the diagonal, first and second off diagonal entries are given by R_(n) _(D) (0), R_(n) _(D) (1) and R_(n) _(D) (2), respectively (see (32)). Now, the dynamic model parameter vector can be estimated from (42) through least squares (LS) optimization as follows: {circumflex over (b)} _(LS)[κ]=((A ^(κ))^(T)(Σ_(D) ^(κ))⁻¹ A ^(κ))⁻¹ A ^(K) ^(T) (Σ_(D) ^(κ))⁻¹ v _(D) ^(κ)  (48)

The covariance matrix of the LS estimator is given by: P _(b)[κ]=((A ^(κ))^(T)(Σ_(D) ^(κ))A ^(−1K))⁻¹  (49)

When new batch of measurements are obtained, the LS estimates can be recursively updated by repeating (50)-(51) P _(b) ⁻¹[κ+1]=λP _(b) ⁻¹[κ]+(A ^(K+1))^(T)(Σ_(D) ^(κ))⁻¹ A ^(κ+1)  (50) {circumflex over (b)} _(RLS)[κ+1]=P _(b)[κ+1](λP _(b) ⁻¹[κ]{circumflex over (b)} _(RLS)[κ]+(A ^(K+1))^(T)(Σ_(D) ^(κ))⁻¹ v _(D) ^(κ+1)  (51)

where λ is the forgetting (fading memory) factor, (⋅)^(T) denotes transpose, (⋅)⁻¹ denotes inverse and P_(b) ⁻¹[κ] is known as the information matrix that can be initialized with an identity matrix of appropriate size multiplied by a suitable constant. It can be noticed that when λ=0, {circumflex over (b)}_(RLS) becomes {circumflex over (b)}_(LS). There can be several ways of approximating. The following two approximations may be selected for comparison:

-   -   a. The following approximation can be made:         Σ_(D) ^(κ) ≈I _(l) _(b)   (52)

b. Use the previous estimate of in order to construct the current covariance matrix, for example, use: {circumflex over (b)} _(RLS)[K−1] in Σ_(D) ^(κ)  (53)

The following discussion relates to minimum mean square error (MMSE) estimation of time-varying dynamic model parameters. Assuming the dynamic model parameters to be random variables that undergo the following slowly changing Wiener process: x _(b)[k+1]=x _(b)[k]+w _(b)[k]  (54)

where w_(b)[k] is zero mean white Gaussian noise with covariance Σ_(b). Now, using (30) as the measurement model and (53) as the process model, a Kalman filter gives the MMSE estimate of b. SOC may be used to determine v_(D)[k](see (42)) an iterative scheme of SOC tracking/smoothing and Kalman filtering based parameter estimation over a sufficient length observation window could be used for increased accuracy in SOC tracking and parameter estimation.

The following discussion relates to open circuit voltage (OCV) parameter estimation. SOC estimation may exploit a unique and stable relationship between the open circuit voltage (OCV) and SOC of the battery and allows computation the SOC for a measured OCV. However, it is possible to directly measure the OCV only when the battery is at rest. When the battery is in use, the dynamic relationship between the battery voltage and current has to be accounted for through parameter and state estimation approaches. The OCV-SOC based state of charge estimation approach includes error associated with (1) uncertainty in the modeling and parameter estimation of the dynamic electrical equivalent model of the battery; and (2) errors in measured voltage and current. The parameters of the OCV-SOC characterization in (43) can be estimated by collecting OCV characterization data on a sample battery as follows:

-   -   a. Start with a fully charged, fully rested battery     -   b. Record its open circuit voltage V_(batt)=V_(full)     -   c. Set k=1     -   d. Record v[k]=V_(batt); Record SOC[k]=1     -   e. Set k=k+1     -   f. Continuously discharge the battery using a very small amount         of (typically, C/30 or C/40 where C is the capacity of the         battery in Ah) constant current i[k] until the battery is         completely discharged. Once fully discharged, leave the battery         to rest and after that charge until the battery becomes full.         Then         -   1. Measure the battery terminal voltage, V_(batt) every Δ             seconds         -   2. Record v[k]=V_(batt)     -   g. Record SOC[k]=SOC[k−1]+c_(h)i[k]Δ

Now, OCV model (43) can be expressed in the following vector format for all the measurements v[k]: v=A _(ocv) k  (55) where v=[v[1],v[2] . . . ,v[N _(v)]]^(T)  (56) A _(ocv)=[a _(ocv)(1),a _(ocv)(2), . . . ,a _(ocv)(N _(v))]^(T)  (57) k=[K ₀ K ₁ K ₂ K ₃ K ₄ K ₅ K ₆ K ₇ R ₀]^(T)  (58)

and by assigning s[k]=SOC[k]

$\begin{matrix} {{a_{ocv}\lbrack k\rbrack} = \begin{bmatrix} 1 & \frac{1}{s\lbrack k\rbrack} & \frac{1}{s^{2}\lbrack k\rbrack} & \frac{1}{s^{3}\lbrack k\rbrack} & \frac{1}{s^{4}\lbrack k\rbrack} & {s\lbrack k\rbrack} & {\ln\left( {s\lbrack k\rbrack} \right)} & {\ln\left( {1 - {s\lbrack k\rbrack}} \right)} & {i\lbrack k\rbrack} \end{bmatrix}^{T}} & (59) \end{matrix}$

Now, the least square estimation of the OCV parameters and the battery internal resistant R₀ are given by: {circumflex over (k)}=(A _(ocv) ^(T) A _(ocv))⁻¹ A _(ocv) ^(T) v  (60)

The following discussion relates to four exemplary equivalent circuit models.

TABLE 1 Model Number Equivalent Circuit Model 1 FIG. 13D Model 2 FIG. 13C Model 3 FIG. 13B Model 4 FIG. 13A

The voltage drop across the circuit components of each of the four equivalent circuit models shown in Table 1 can be written in the following form: v _(D)[k]=[k]^(T)[k]+n _(D)[k]  (61) where,

$\begin{matrix} {{a\lbrack k\rbrack}^{T} = \left\{ \begin{matrix} {{a_{1}^{T}\lbrack k\rbrack} \cong {z_{i}\lbrack k\rbrack}} & {{Model}\mspace{14mu} 1} \\ {{a_{2}^{T}\lbrack k\rbrack} \cong {z_{i}\lbrack k\rbrack}} & {{Model}\mspace{14mu} 2} \\ {{a_{3}^{T}\lbrack k\rbrack} \cong \left\lbrack {{{v_{D}\left\lbrack {k - 1} \right\rbrack}{z_{i}\lbrack k\rbrack}} - {{z_{i}\left\lbrack {k - 1} \right\rbrack}1}} \right\rbrack} & {{Model}\mspace{14mu} 3} \\ {{a_{4}^{T}\lbrack k\rbrack} \cong \left\lbrack {{v_{D}\left\lbrack {k - 1} \right\rbrack} - {{v_{D}\left\lbrack {k - 2} \right\rbrack}{z_{i}\lbrack k\rbrack}} - {{z_{i}\left\lbrack {k - 1} \right\rbrack}{z_{i}\left\lbrack {k - 2} \right\rbrack}1}} \right\rbrack} & {{Model}\mspace{14mu} 4} \end{matrix} \right.} & (62) \\ {\mspace{79mu}{b = \left\{ \begin{matrix} {{b_{1}\lbrack k\rbrack} \cong R_{0}} & {{Model}\mspace{14mu} 1} \\ {{b_{2}\lbrack k\rbrack} \cong \left\lbrack {R_{0}\mspace{14mu} H} \right\rbrack^{T}} & {{Model}\mspace{14mu} 2} \\ {{b_{3}\lbrack k\rbrack} \cong \begin{bmatrix} \alpha_{1} & R_{0} & {\overset{\sim}{R}}_{1} & \overset{\sim}{H} \end{bmatrix}^{T}} & {{Model}\mspace{14mu} 3} \\ {{b_{4}\lbrack k\rbrack} \cong \begin{bmatrix} \alpha & \beta & R_{0} & {\overset{\Cup}{R}}_{1} & {\overset{\Cup}{R}}_{2} & \overset{\Cup}{H} \end{bmatrix}^{T}} & {{Model}\mspace{14mu} 4} \end{matrix} \right.}} & (63) \end{matrix}$ {tilde over (R)} ₁=α₁ R ₀−(1−α₁)R ₁  (64) {tilde over (H)}=h[k]−α₁ h[k−1]  (65)

and, for model 4: α=α₁+α₂  (66) β=α₁α₂  (67) Ř ₁=(α₁+α₂)R ₀−(1−α₁)R ₁−(1−α₂)R ₂  (68) Ř ₂=α₁α₂ R ₀−α₂(1−α₁)R ₁−α₁(1−α₂)R ₂  (69) {hacek over (H)}=h[k]−(α₁+α₂)h[k−1]+α₁α₂ h[k−2]  (70)

The following relates to a derivation of the noise correlation. In this section the autocorrelation (27) for |l|=0,1,2 and for |l|>2 may be derived from (33) the following:

$\begin{matrix} {l = {{0\text{:}\mspace{20mu}{R_{n_{D}}(0)}} = {{E\left\{ {{n_{D}\lbrack k\rbrack}{n_{D}\lbrack k\rbrack}} \right\}} = {E\left\{ \left\{ {{n_{v}^{2}\lbrack k\rbrack} + {\alpha^{2}{n_{v}^{2}\left\lbrack {k - 1} \right\rbrack}} + {\beta^{2}{n_{v}^{2}\left\lbrack {k - 2} \right\rbrack}} + {R_{0}^{2}{n_{i}^{2}\lbrack k\rbrack}} + {{\overset{\Cup}{R}}_{1}^{2}{n_{i}^{2}\left\lbrack {k - 1} \right\rbrack}} + {{\overset{\Cup}{R}}_{2}^{2}{n_{i}^{2}\left\lbrack {k - 2} \right\rbrack}}} \right\} \right\}}}}} & (71) \\ {\mspace{76mu}{= {{\left( {1 + \alpha^{2} + \beta^{2}} \right)\sigma_{v}^{2}} + {\left( {R_{0}^{2} + {\overset{\Cup}{R}}_{1}^{2} + {\overset{\Cup}{R}}_{2}^{2}} \right)\sigma_{i}^{2}}}}} & (72) \\ {l = {{1\text{:}\mspace{20mu}{R_{n_{D}}(1)}} = {{E\left\{ {{n_{D}\lbrack k\rbrack}{n_{D}\left\lbrack {k - 1} \right\rbrack}} \right\}} = {{E\left\{ {\left( {{{- \alpha}\;{n_{v}\left\lbrack {k - 1} \right\rbrack}} + {\beta\;{n_{v}\left\lbrack {k - 2} \right\rbrack}} + {{\overset{\Cup}{R}}_{1}{n_{i}\left\lbrack {k - 1} \right\rbrack}} - {{\overset{\Cup}{R}}_{2}{n_{i}\left\lbrack {k - 2} \right\rbrack}}} \right)\left( {{n_{v}\left\lbrack {k - 1} \right\rbrack} - {\alpha\;{n_{v}\left\lbrack {k - 2} \right\rbrack}} - {R_{0}{n_{i}\left\lbrack {k - 1} \right\rbrack}} + {{\overset{\Cup}{R}}_{1}{n_{i}\left\lbrack {k - 2} \right\rbrack}}} \right)} \right\}} = {{E\left\{ {{{- \alpha}\;{n_{v}^{2}\left\lbrack {k - 1} \right\rbrack}} - {{\alpha\beta}\;{n_{v}^{2}\left\lbrack {k - 2} \right\rbrack}} - {R_{0}{\overset{\Cup}{R}}_{1}{n_{i}^{2}\left\lbrack {k - 1} \right\rbrack}} - {{\overset{\Cup}{R}}_{1}{\overset{\Cup}{R}}_{2}{n_{i}^{2}\left\lbrack {k - 2} \right\rbrack}}} \right\}} = {{{- {\alpha\left( {1 + \beta} \right)}}\sigma_{v}^{2}} - {{{\overset{\Cup}{R}}_{1}\left( {R_{0} + \overset{\Cup}{R_{2}}} \right)}\sigma_{i}^{2}}}}}}}} & (73) \\ {l = {{2\text{:}\mspace{20mu}{R_{n_{D}}(2)}} = {{E\left\{ {{n_{D}\lbrack k\rbrack}{n_{D}\left\lbrack {k - 2} \right\rbrack}} \right\}} = {{E\left\{ {\left( {{\beta\;{n_{v}\left\lbrack {k - 2} \right\rbrack}} - {{\overset{\Cup}{R}}_{2}{n_{i}\left\lbrack {k - 2} \right\rbrack}}} \right)\left( {{n_{v}\left\lbrack {k - 2} \right\rbrack} - {R_{0}{n_{i}\left\lbrack {k - 2} \right\rbrack}}} \right)} \right\}} = {{E\left\{ {{\beta\;{n_{v}^{2}\left\lbrack {k - 2} \right\rbrack}} + {R_{0}{\overset{\Cup}{R}}_{2}{n_{i}^{2}\left\lbrack {k - 2} \right\rbrack}}} \right\}} = {{\beta\;\sigma_{v}^{2}} + {R_{0}{\overset{\Cup}{R}}_{2}\sigma_{i}^{2}}}}}}}} & (74) \end{matrix}$

Now, the above can be expressed for each models as follows:

$\begin{matrix} {{R_{n_{D}}(0)} = \left\{ \begin{matrix} {\sigma_{v}^{2} + {R_{0}^{2}\sigma_{i}^{2}}} & {{Model}\mspace{14mu} 1} \\ {\sigma_{v}^{2} + {R_{0}^{2}\sigma_{i}^{2}}} & {{Model}\mspace{14mu} 2} \\ {{\left( {1 + \alpha_{1}^{2}} \right)\sigma_{v}^{2}} + {\left( {R_{0}^{2} + {\overset{\sim}{R}}_{1}^{2}} \right)\sigma_{i}^{2}}} & {{Model}\mspace{14mu} 3} \\ {{\left( {1 + \alpha^{2} + \beta^{2}} \right)\sigma_{v}^{2}} + {\left( {R_{0}^{2} + {\overset{\Cup}{R}}_{1}^{2} + {\overset{\Cup}{R}}_{2}^{2}} \right)\sigma_{i}^{2}}} & {{Model}\mspace{14mu} 4} \end{matrix} \right.} & (75) \\ {{R_{n_{D}}(1)} = \left\{ \begin{matrix} 0 & {{Model}\mspace{14mu} 1} \\ 0 & {{Model}\mspace{14mu} 2} \\ {{{- \alpha_{1}}\sigma_{v}^{2}} - {R_{0}{\overset{\sim}{R}}_{1}\sigma_{i}^{2}}} & {{Model}\mspace{14mu} 3} \\ {{{- {\alpha\left( {1 + \beta} \right)}}\sigma_{v}^{2}} - {{{\overset{\Cup}{R}}_{1}\left( {R_{0} + {\overset{\Cup}{R}}_{2}} \right)}\sigma_{i}^{2}}} & {{Model}\mspace{14mu} 4} \end{matrix} \right.} & (76) \\ {\mspace{79mu}{{R_{n_{D}}(2)} = \left\{ \begin{matrix} 0 & {{Model}\mspace{14mu} 1} \\ 0 & {{Model}\mspace{14mu} 2} \\ 0 & {{Model}\mspace{14mu} 3} \\ {{\beta\;\sigma_{v}^{2}} + {R_{0}{\overset{\Cup}{R}}_{2}\sigma_{i}^{2}}} & {{Model}\mspace{14mu} 4} \end{matrix} \right.}} & (77) \end{matrix}$

The discussion continues with real time capacity estimation, which may reference the following notations.

C_(batt) Capacity of the battery

c_(h) Coulomb counting coefficient

Ĉ_(LS) LS estimate of battery capacity

Ĉ_(RLS) RLS estimate of battery capacity

Ĉ_(TLS) TLS estimate of the battery capacity

d_(c) ^(κ) Vector of SOC differences

d_(c,ocv) ^(κ) Vector of SOC differences between two rests

d_(s) ^(κ) Vector of Coulombs

d_(s,ocv) ^(κ) Vector of Coulombs between two rests

H^(κ) Augmented observation matrix

i[k] Current through the battery

K_(l) OCV parameters: K₀, K₁, K₂, K₃, K₄, K₅, K₆ K₇

n_(i)[k] Noise in measured current

P_(s)[k|k] SOC estimation error variance

Q_(c) [κ] Variance of capacity drift

R_(c)[κ] Capacity estimation error by TLS, RLS or OCV method

{circumflex over (R)}_(RLS)[κ] RLS capacity estimation error variance

R_(TLS)[κ] TLS capacity estimation error variance

w_(s)[k] Process noise

{tilde over (w)}_(s)[k] Differential SOC error

w _(s) ^(k) k Accumulative of process noise between rest at k and the subsequent rest

{tilde over (w)}_(s,ocv) ^(k) Differential SOC error based on OCV lookup

{tilde over (w)}_(s) ^(k) Vector of differential SOC errors

{tilde over (w)}_(s,ocv) ^(k) Vector of differential OCV based SOC errors

x_(c)[κ] Fused battery capacity

{circumflex over (x)}_(s)[k|k] SOC estimate

{tilde over (x)}_(s) [k|k] Error in the estimate of SOC

x_(s)[k+1] SOC

{circumflex over (x)}_(s,ocv)[k] OCV lookup based SOC estimate

{tilde over (x)}_(s,ocv)[k] Error in OCV lookup based SOC estimate

z_(c)[κ] Capacity estimates by TLS, RLS or OCV method

z_(i)[k] Measured current

ε_(D) _(batt) [k] Capacity estimation error

η_(c) Charging efficiency (η=η_(c))

η_(d) Discharging efficiency (η=η_(d))

S_(H) ^(k) Covariance of the augmented observation matrix

Σ_({tilde over (w)}) _(s) ^(k) Covariance of differential SOC errors

The state of charge (SOC) of the battery, defined as:

$\begin{matrix} {{SOC} = \frac{{RemainingchargeinAmperehours}\mspace{11mu}({Ah})}{{CapacityofthebatteryinAmperehours}\mspace{11mu}({Ah})}} & (78) \end{matrix}$

Equation 78 provides information about the status of the battery. The knowledge of SOC and battery capacity are used to estimate the time to shut down (TTS) or time to fully charge (TTF) the battery. Battery capacity typically varies with temperature and that it fades over time depending on usage patterns and age. Accurate tracking of battery capacity is a critical element of battery fuel gauging.

In this example implementation, the online capacity estimates can be based on:

-   -   a. A weighted recursive least squares (RLS) estimate of capacity         with the derivation of the exact weights. A weighted RLS         approach for online capacity estimation includes deriving         expressions for the weights based on the variances and         covariances across times of the updated SOC tracking and the         current measurement error standard deviation.     -   b. A TLS approach for real time tracking of battery capacity.         The TLS approach gives a closed form expression for capacity         estimation. This approach can be used for continuously tracking         changes in the battery capacity.     -   c. Adaptive capacity estimation based on OCV lookup of a rested         battery. A TLS approach for online tracking of battery capacity         by exploiting battery resting instances for OCV lookup based SOC         estimation.     -   d. Fusion of capacity estimates obtained through different         approaches.

The following discussion relates to battery capacity estimation and fusion. The instantaneous state of charge (SOC) of the battery can be written as the following process model, which is also known as the Coulomb counting equation, in terms of the measured current as follows:

$\begin{matrix} {{x_{s}\left\lbrack {k + 1} \right\rbrack} = {{x_{s}\lbrack k\rbrack} + {\frac{\eta\Delta}{3600\mspace{11mu} C_{batt}}{z_{i}\lbrack k\rbrack}} + {w_{s}\lbrack k\rbrack}}} & (79) \end{matrix}$

where x_(s)[k]∈[0,1] denotes the SOC of the battery, C_(batt) is the capacity of the battery in Ampere hours (Ah) and z_(i)[k] is the measured current z _(i)[k]=i[k]+n _(i)[k]  (80)

which is corrupted by zero mean white noise n_(i)[k] with standard deviation (s.d.) σ_(i). The process noise in (79) relates to the measurement noise in (80) as w _(s)[k]−c _(h) Δn _(i)[k]  (81)

and is zero mean with s.d. σ_(s) =c _(h)Δσ_(i)  (82)

where the Coulomb counting coefficient is

$\begin{matrix} {c_{h} \cong \frac{\eta}{3600\mspace{11mu} C_{batt}}} & (83) \end{matrix}$

Here, η is a constant that depends on whether the battery is being charged or discharged, for example,

$\begin{matrix} {\eta = \left\{ \begin{matrix} \eta_{c} & {{i\lbrack k\rbrack} > 0} \\ \eta_{d} & {{i\lbrack k\rbrack} < 0} \end{matrix} \right.} & (84) \end{matrix}$

and Δ is the (constant) sampling interval.

The following discussion relates to online battery capacity estimation using recursive least squared (RLS). Estimating SOC can be based on both voltage and current measurements. Two consecutive SOC values x_(s)[k] and x_(s)[k+1] are written in terms of their estimates as: x _(s)[k]={circumflex over (x)} _(s)[k|k]+{tilde over (x)} _(s)[k|k]  (84) x _(s)[k+1]={circumflex over (x)} _(s)[k+1|k+1]+{tilde over (x)} _(s)[k+1|k+1]  (85)

where the estimation errors {tilde over (x)}_(s)[k|k] and {tilde over (x)}_(s)[k+1|k+1] have zero mean and variances P[k|k] and P[k+1|k+1], respectively. The covariance between two consecutive estimation errors is: E{{tilde over (x)} _(s)[k|k]{tilde over (x)} _(s)[k+1|k+1]}=(1−G[k+]H[k+1])P _(s)[k|k]  (86)

where G[k+1] is the scalar Kalman gain and H[k+1] is the scalar linearized observation model at time k+1. Now, rewriting (80) in the following form:

$\begin{matrix} {{{x_{s}\left\lbrack {k + 1} \right\rbrack} - {x_{s}\lbrack k\rbrack}} = {{\frac{\eta\Delta}{3600C_{batt}}{z_{i}\lbrack k\rbrack}} + {w_{s}\lbrack k\rbrack}}} & (87) \end{matrix}$

Substituting (84) and (85) in (87) yields:

$\begin{matrix} {{{\Delta\;{x_{s}\left\lbrack {{k + 1},k} \right\rbrack}} \cong {{{\hat{x}}_{s}\left\lbrack {{k + 1}❘{k + 1}} \right\rbrack} - {{\hat{x}}_{s}\left\lbrack {k❘k} \right\rbrack}}} = {{\frac{\eta_{h}\Delta}{C_{batt}}{z_{i}\lbrack k\rbrack}} + {{\overset{\sim}{w}}_{s}\lbrack k\rbrack}}} & (88) \end{matrix}$

where,

$\begin{matrix} {\eta_{h} = \frac{\eta}{3600}} & (89) \end{matrix}$

and the differential error given by: {tilde over (w)} _(s)[k]={tilde over (x)} _(s)[k|k]−{tilde over (x)} _(s)[k+1|k+1]+w _(s)[k]  (90)

is zero mean with variance: E{{tilde over (w)} _(s)[k]² }≅R _({tilde over (w)}) _(s) _([k]) =G[k+1]² S[k+1]  (91)

where S[k+1] is the innovation covariance of the Kalman filter. By considering a batch of L_(c) of samples, (88) can be written in vector from as follows: d _(s) ^(k) =C _(batt) ⁻¹ d _(c) ^(κ) +{tilde over (w)} _(s) ^(κ)  (92) where,

κ is the batch number,

L_(c) is the length of the batch, d _(s) ^(κ)=[Δx _(s)[κL _(c) −L _(c)+1,κL _(c) −L _(c)]Δx _(s)[κL _(c) −L _(c)+2,κL _(c)+1]  (93) Δx _(s)[κL _(c) ,κL _(c)−1]]^(T) d _(c) ^(κ=[η) _(h)Δ_(κL) _(c) _(−L) _(c+) 1z _(i)[κL _(c) −L+1]η_(h)Δ_(κL) _(c) _(−L) _(c+) 1z _(i)[κL _(c) −L _(c)+2]  (94) η_(h)Δ_(κL) _(c) Z _(i)[κL _(c)]]^(T) {tilde over (W)} _(s) ^(κ)=[{tilde over (w)}[κL _(c) −L _(c)+1]{tilde over (w)}[κL _(c) −L _(c)+2] . . . {tilde over (w)}[κL _(c)]]^(T)  (95) and {tilde over (W)}_(s) ^(κ) is a white Gaussian noise vector with covariance: Σ_({tilde over (w)}) _(s) ^(κ) =E{ _(s) ^(κ)(_(s) ^(κ))^(T)}  (96)

which is an L_(c)×L_(c) diagonal matrix with its n^(th) diagonal element given by: Σ_({tilde over (w)}) _(s) ^(κ))_(nn) =G[κL _(c) −L _(c) +n]² S[κL _(c) −L _(c) +n]  (97)

Now, the LS estimate of the inverse battery capacity is given by: Ĉ _(LS) ⁻¹=((d _(c) ^(κ))^(T)(Σ_({tilde over (w)}) _(s) ^(κ))⁻¹ d _(c) ^(κ))⁻¹(d _(c) ^(κ))^(T)Σ_({tilde over (w)}) _(s) ^(κ))⁻¹ d _(c) ^(κ)  (98) and the variance of the LS inverse capacity estimate is: {circumflex over (R)} _(RLS)[κ]=((d _(c) ^(κ))^(T)(Σ_({tilde over (w)}) _(s) ^(κ))⁻¹ d _(c) ^(κ))⁻¹  (99)

When a new batch of {d_(s) ^(κ+1), d_(s) ^(κ+1)} pair arrives, the LS estimates can be recursively updated by: {circumflex over (R)} _(RLS) ⁻¹[κ+1]=λ{circumflex over (R)} _(RLS) ⁻¹[κ]+(d _(c) ^(κ+1))^(T)(Σ_({tilde over (w)}) _(s) ^(κ))⁻¹)d _(c) ^(κ+1)  (100) {circumflex over (R)} _(RLS) ⁻¹[κ+1]={circumflex over (R)} _(RLS)[κ+1](λ{circumflex over (R)} _(RLS) ⁻¹[κ]Ĉ _(RLS) ⁻¹[κ]+(d _(c) ^(κ+1))^(T)(Σ_({tilde over (w)}) _(s) ^(κ))⁺¹ d _(b) ^(κ+1))  (101)

where {circumflex over (R)}_(RLS) ⁻¹[κ] is the L_(c)×L_(c) information matrix for capacity estimation and λ is the fading memory constant. It should be noted that d_(c) ^(κ) in (92) is constructed from measured current values that are known to be noisy whereas the LS and RLS estimation methods described above assume that d_(c) ^(κ) is perfectly known. For a more realistic solution, the uncertainty in d_(c) ^(κ) should be considered. Next, an approach based on total least squares (TLS) optimization that addresses errors in d_(c) ^(κ) is described.

The following discussion relates to online battery capacity estimation using adaptive total least square (TLS). In this section, an online capacity estimation method is developed based on TLS which assumes uncertainty in both d_(s) ^(κ) and d d_(c) ^(κ) in (92). Constructing the following augmented observation matrix: H ^(κ)=[d _(s) ^(κ) d _(c) ^(κ)]  (102)

The information matrix associated with the augmented observation matrix is: S _(H) ^(k)=(H ^(κ))^(T) H ^(κ)  (103)

Writing the eigendecomposition of S_(H) ^(k) in the following form: S _(H) ^(k) =V ^(κ) A ^(κ) V ^(κT)  (104)

where,

A^(κ) is a diagonal 2×2 matrix of nonnegative eigenvalues arranged from the largest to the smallest, i.e., A^(κ) (1,1) denotes the largest eigen value and A^(κ) (2,2) denotes the smallest eigenvalue.

Each column of the 2×2 matrix V^(k)=[v₁ ^(κ),v₂ ^(κ)] has the corresponding eigenvectors, i.e., the first column v₁ ^(κ) is the eigenvector corresponding to the largest eigenvalue and the second column v₂ ^(κ) is the eigenvector corresponding to the smallest eigenvalue.

The TLS estimate of the inverse battery capacity is then given by the ratio of the components of v₂ ^(κ), namely:

$\begin{matrix} {{{\hat{C}}_{TLS}^{- 1}\lbrack\kappa\rbrack} = {{- \frac{v_{2}^{\kappa}(1)}{v_{2}^{\kappa}(2)}} = \frac{S_{H}^{k}\left( {1,2} \right)}{{S_{H}^{k}\left( {1,1} \right)} - {\Lambda^{\kappa}\left( {2,2} \right)}}}} & {(105)\lbrack 6\rbrack} \end{matrix}$

where v₂ ^(κ)(i) is the i^(th) element of v₂ ^(κ) and S_(H) ^(k) (i,j) is the (i,j)^(th) element of S_(H) ^(k). The derivation of (105) is shown in below.

For smoother estimates, the information matrix in (103) can be updated with a fading memory, as follows:

$\begin{matrix} {S_{H}^{k} = {{\lambda\; S_{H}^{k - 1}} + \frac{\left( H^{\kappa} \right)^{T}H^{\kappa}}{L_{c} - 1}}} & (106) \end{matrix}$

Now, based on [85], the TLS estimation error covariance is (approximately):

$\begin{matrix} {{{\hat{R}}_{TLS}\lbrack\kappa\rbrack} = \left( {\frac{1}{\left( z^{\kappa} \right)^{T}S_{H}^{k}z^{\kappa}}{\sum\limits_{i = 1}^{M}{h_{i}^{\kappa}\left( h_{i}^{\kappa} \right)}^{T}}} \right)^{- 1}} & (107) \end{matrix}$

where h_(i) ^(κ) is the i^(th) row of H^(κ), M is the number of rows in H^(κ) and

$\begin{matrix} {z^{\kappa} = \begin{bmatrix} {- \frac{v_{2}^{\kappa}(1)}{v_{2}^{\kappa}(2)}} & {- 1} \end{bmatrix}^{T}} & (108) \end{matrix}$

The following discussion relates to open circuit voltage (OCV) based battery capacity estimation. For a given rested voltage z_(v)[k], the corresponding SOC estimate {circumflex over (x)}_(s,ovc)[k] can be obtained by inverting (33). Due to hysteresis in the battery, this SOC estimate {circumflex over (x)}_(s,ovc)[k] will differ from the actual SOC x_(s)[k], resulting in an OCV lookup error {tilde over (x)}_(s,ovc)[k]. The OCV lookup error will always be negative during discharging and positive during charging. The open circuit voltage (OCV) of the battery can be written as a nonlinear function of SOC as

$\begin{matrix} {{V_{0}\left( {x_{s}\lbrack k\rbrack} \right)} = {K_{0} + \frac{K_{1}}{x_{s}\lbrack k\rbrack} + \frac{K_{2}}{{x_{s}\lbrack k\rbrack}^{2}} + \frac{K_{3}}{{x_{s}\lbrack k\rbrack}^{3}} + \frac{K_{4}}{{x_{s}\lbrack k\rbrack}^{4}} + {K_{5}{x_{s}\lbrack k\rbrack}} + {K_{6}{\ln\left( {x_{s}\lbrack k\rbrack} \right)}} + {K_{7}{\ln\left( {1 - {x_{s}\lbrack k\rbrack}} \right)}}}} & (109) \end{matrix}$

where the coefficients K₀,K₁,K₂,K₃,K₄, K₅,K₆ and K₇ can be estimated offline by collecting voltage and current measurements by slowly charging and then discharging the battery. The resultant OCV-SOC characteristic curve can be used to get a measure of SOC whenever the battery is sufficiently rested. The SOC of the battery for a given at-rest terminal voltage (which is also the open circuit voltage) z_(v)[k], written as: {circumflex over (x)} _(s,ovc)[k]=f _(ocv-soc) ⁻¹(z _(v)[k])  (110)

can be computed using the OCV-SOC characterization by computing the inverse of (109). There are several methods for computing the inverse of a nonlinear function, such as Newton's method and binary search. This may be referred to as OCV lookup based SOC estimate. The SOC estimate in (110) is corrupted by the hysteresis voltage as follows: x _(s)[k]={circumflex over (x)} _(s,ovc)[k]+{tilde over (x)} _(s,ovc)[k]  (111)

where the OCV lookup error {tilde over (x)}_(s,ovc)[k] is caused by the hysteresis effect in OCV. It should be noted that when the battery comes to rest at time k after a discharging process, the OCV lookup error {tilde over (x)}_(s,ovc)[k] should be negative. Similarly, when the battery comes to rest at time k after a charging process, the OCV lookup error is, {tilde over (x)}_(s,ovc)[k] will always be positive. However, the magnitude of the error will vary with the amount of hysteresis, which is a function of the magnitude of the current before rest, SOC and time. Now, rewriting (79) in the following form:

$\begin{matrix} {\mspace{20mu}{{x_{s}\left\lbrack {k + 1} \right\rbrack} = {{x_{s}\lbrack k\rbrack} + {c_{h}\Delta\;{z_{i}\lbrack k\rbrack}} + {w_{s}\lbrack k\rbrack}}}} & (112) \\ {\mspace{20mu}{{{x_{s}\left\lbrack {k + 2} \right\rbrack} = {{x_{s}\left\lbrack {k + 1} \right\rbrack} + {c_{h}\Delta_{k + 1}{z_{i}\left\lbrack {k + 1} \right\rbrack}} + {w_{s}\left\lbrack {k + 1} \right\rbrack}}}\mspace{20mu}\vdots}} & (113) \\ {{x_{s}\left\lbrack {k + N} \right\rbrack} = {{x_{s}\left\lbrack {k + N - 1} \right\rbrack} + {c_{h}\Delta_{k + N - 1}{z_{i}\left\lbrack {k + N - 1} \right\rbrack}} + {w_{s}\left\lbrack {k + N - 1} \right\rbrack}}} & (114) \end{matrix}$

By adding (112) through (114) on both sides, the following results:

$\begin{matrix} {{x_{s}\left\lbrack {k + N} \right\rbrack} = {{x_{s}\lbrack k\rbrack} + \frac{\eta{\sum\limits_{j = k}^{j = {K + N - 1}}{\Delta\;{z_{i}\lbrack k\rbrack}}}}{3600C_{batt}} + \underset{\underset{{\overset{\_}{w}}_{s}^{k}}{︸}}{\sum\limits_{j = k}^{k + N - 1}{w_{s}\lbrack j\rbrack}}}} & (115) \end{matrix}$

where,

w _(s) ^(k) is zero mean with standard deviation √{square root over (N)}σ_(s).

Assuming that the battery is at rest at time k and k+N, (115) can be written as: d _(s,ocv) ^(k) =C _(batt) ⁻¹ d _(c,ocv) +{tilde over (w)} _(s,ocv) ^(k)  (116)

$\begin{matrix} {d_{c,{ocv}}^{k} = \frac{\eta{\sum\limits_{j = k}^{j = {K + N - 1}}{\Delta\;{z_{i}\lbrack k\rbrack}}}}{3600}} & (117) \\ {d_{s,{ocv}}^{k} = {{{\hat{x}}_{s,{ocv}}\left\lbrack {k + N} \right\rbrack} - {{\hat{x}}_{s,{ocv}}\lbrack k\rbrack}}} & (118) \\ {{\overset{\sim}{w}}_{s,{ocv}}^{k} = {\underset{\underset{{\overset{\sim}{x}}_{d,{ocv}}^{k}}{︸}}{{{\overset{\sim}{x}}_{s,{ocv}}\lbrack k\rbrack} - {{\overset{\sim}{x}}_{s,{ocv}}\left\lbrack {k + N} \right\rbrack}} + {\overset{\_}{w}}_{s}^{k}}} & (119) \end{matrix}$

It should be noted that, regardless of the fact that the sign of OCV lookup error {tilde over (x)}_(s,ovc)[k] is biased towards the battery mode∈{charging,discharging}, the “differential error” {tilde over (x)}_(d,ovc) ^(k) (defined in (119)) can either be positive or negative. By considering a large number of differential errors, assuming {tilde over (x)}_(d,ovc) ^(k) is approximately white. Assuming that the κ^(th) batch of differential SOCs d_(s,ocv) ^(κ) is collected between a first set of rest points k=k₁,k₂, . . . , k_(L) _(c) and a second set of rest points k+N=k₁+N₁,k₂+N₂, . . . , k_(L) _(c) +N_(L) _(c) , respectively, and given by: d _(s,ocv) ^(κ) =C _(batt) d _(c,ocv) ^(K) +{tilde over (w)} _(s,ocv) ^(K)  (120) where, d _(s,ocv) ^(k)=[d _(s,ocv) ^(k) ¹ ,d _(s,ocv) ^(k) ² , . . . ,d _(s,ocv) ^(k) ^(Lc) ]^(T)  (121) d _(c,ocv) ^(k)=[d _(c,ocv) ^(k) ¹ ,d _(c,ocv) ^(k) ² , . . . ,d _(c,ocv) ^(k) ^(Lc) ]^(T)  (122) {tilde over (w)} _(s,ocv) ^(k)=[d _(s,ocv) ^(k) ¹ ,d _(s,ocv) ^(k) ² , . . . ,d _(s,ocv) ^(k) ^(Lc) ]^(T)  (123)

Now, it can be seen that (120) is in the same form as (92) with d_(s,ocv) ^(k), d_(c,ocv) ^(k) and {tilde over (w)}_(s,ocv) ^(k) replacing d_(s) ^(κ), d_(c) ^(κ), and {tilde over (w)}_(s) ^(κ), respectively. Hence, RLS and TLS based capacity estimates can be derived for OCV based observations, as shown below. Denoting the RLS and TLS estimates of OCV based capacity as Ĉ_(RO)[κ] and Ĉ_(TO)[κ], respectively. It should be noted that, given N_(r) number of rest states interspersed with a discharge, N_(r)(N_(r)−1)/2 differential observations are possible. For example, for N_(r)=4, assuming the battery is in rest state at time instances t₁,t₂,t₃ and t₄.

The following relates to capacity estimation through fusion. In this section, an example implementation for fusing the TLS estimates of capacity are described. The derivations in this section are developed for a TLS based capacity estimate. The derivations can be applied for fusing RLS based capacity estimates as well.

The online capacity estimate Ĉ_(TLS)[κ] is corrupted by the uncertainty in d_(c) ^(κ) (see (92)) which is caused by the errors in the measured current and the uncertainty in the d_(s) ^(κ) which is caused by the errors in the SOC tracking algorithm. Similarly, the OCV based capacity estimation C_(TO)[κ] is corrupted by the uncertainty in d_(c,ocv) ^(κ) (see (120)) which is caused by the errors in the measured current and the uncertainty in _(s) ^(κ) that is caused by the OCV lookup differential error. Assuming that the errors in online capacity estimates e₁[κ] and the OCV lookup based capacity estimates e_(to)[κ] are uncorrelated. Based on these assumptions, the capacity the fusion becomes the fusion of two independent tracks.

First, it should be noted that estimates for the inverse capacities, for example, the capacity estimates Ĉ_(TLS) ⁻¹[κ] and Ĉ_(TLS) ⁻¹[κ], respectively are estimates of 1/C_(batt). Correspondingly, the respective estimation error covariances, {circumflex over (R)}_(TLS)[κ] and {circumflex over (R)}_(TO)[κ] correspond to the inverse capacity estimates as well. Based on Taylor series expansion, the expected value of the TLS based dynamic capacity estimate and the corresponding estimation error variance are approximated as:

$\begin{matrix} {{{\hat{C}}_{TLS}\lbrack\kappa\rbrack} = {\frac{1}{{\hat{C}}_{TLS}^{- 1}\lbrack\kappa\rbrack} + \frac{{\hat{R}}_{TLS}\lbrack\kappa\rbrack}{\left( {{\hat{C}}_{TLS}^{- 1}\lbrack\kappa\rbrack} \right)^{3}}}} & (124) \\ {{R_{TLS}\lbrack\kappa\rbrack} = \frac{{\hat{R}}_{TLS}\lbrack\kappa\rbrack}{\left( {{\hat{C}}_{TLS}^{- 1}\lbrack\kappa\rbrack} \right)^{4}}} & (125) \end{matrix}$

where Ĉ_(TLS) is the estimate of C_(batt) based on dynamic data and R_(TLS)[κ] is the estimation error variance. By following the same procedure, the OCV based capacity estimates C_(TO)[κ] and the corresponding estimation error covariance R_(TO)[κ] can be obtained. Now, assuming the battery capacity to be a random variable that undergoes the following slowly changing Wiener process: x _(c)[κ+1]=x _(c)[κ]+w _(c)[κ]  (126)

where w_(c)[κ] assumed to be zero mean white Gaussian noise with variance Q_(c)[κ]. The capacity estimates Ĉ_(TLS) [κ] and Ĉ_(TO)[κ] fit the following observation model: z _(c)[κ]=x _(c)[κ]+n _(c)[κ]  (127) where z _(c)[κ]∈{Ĉ _(TLS)[κ′],Ĉ _(TO)[κ″]}  (128)

κ′ and κ″ are the time indices of latest estimates from the corresponding algorithms (TLS and TO, respectively), and n_(c)[κ] is assumed to be a zero mean white noise with variance:

$\begin{matrix} {{R_{c}\lbrack\kappa\rbrack} = \left\{ \begin{matrix} {R_{TLS}\lbrack\kappa\rbrack} & {{{if}\mspace{14mu}{z_{c}\lbrack\kappa\rbrack}} = {{\hat{C}}_{TLS}\lbrack\kappa\rbrack}} \\ {R_{TO}\lbrack\kappa\rbrack} & {{{if}\mspace{14mu}{z_{c}\lbrack\kappa\rbrack}} = {{\hat{C}}_{TO}\lbrack\kappa\rbrack}} \end{matrix} \right.} & (129) \end{matrix}$

Now, whenever a new measurement z_(c)[κ]∈{Ĉ_(TLS) [κ′],Ĉ_(TO)[κ″]} is received, where either κ′=κ or κ″=κ, the fused capacity estimate is obtained as:

$\begin{matrix} {{{\hat{x}}_{c}\left\lbrack {\kappa ❘\kappa} \right\rbrack} = {{{\hat{x}}_{c}\left\lbrack {{\kappa - 1}❘{\kappa - 1}} \right\rbrack} + {\frac{{P_{c}\left\lbrack {{k - 1}❘{k - 1}} \right\rbrack} + {Q_{c}\left\lbrack {\kappa - 1} \right\rbrack}}{{P_{c}\left\lbrack {{\kappa - 1}❘{\kappa - 1}} \right\rbrack} + {Q_{c}\left\lbrack {\kappa - 1} \right\rbrack} + {R_{c}\lbrack\kappa\rbrack}}\left( {{z_{c}\lbrack\kappa\rbrack} - {{\hat{x}}_{c}\left\lbrack {{k - 1}❘{k - 1}} \right\rbrack}} \right)}}} & (130) \end{matrix}$

where {circumflex over (x)}_(c)[κ−1|κ−1] is the previous update of capacity estimate and P_(c)[κ−1|κ−1] is the previous estimation error variance which is updated as:

$\begin{matrix} {{P_{c}\left\lbrack {\kappa ❘\kappa} \right\rbrack} = \frac{{R_{c}\lbrack\kappa\rbrack}\left( {{P_{c}\left\lbrack {{\kappa - 1}❘{\kappa - 1}} \right\rbrack} + {Q_{c}\left\lbrack {\kappa - 1} \right\rbrack}} \right)}{{P_{c}\left\lbrack {{\kappa - 1}❘{\kappa - 1}} \right\rbrack} + {Q_{c}\left\lbrack {\kappa - 1} \right\rbrack} + {R_{c}\lbrack\kappa\rbrack}}} & (131) \end{matrix}$

The above fusion approach can be similarly used for fusing RLS based capacity estimates.

The following relates to derivation of capacity estimation error covariance. In this section, the covariance of the differential error in (90) is derived. For convenience, the differential error (90) is rewritten below {tilde over (w)} _(s)[k]={tilde over (x)} _(s)[k|k]−[k+1|k+1]+w _(s)[k]  (90)

The objective is to compute the variance: E{{tilde over (w)} _(s)[k]{tilde over (w)} _(s)[k]^(T) }≅R _({tilde over (w)}) _(s) [k]  (132)

Writing the process equation (79) in the following forms: x _(s)[k+1]=x _(s)[k]+c _(h) Δz _(i)[k]+w _(s)[k]  (134) {circumflex over (x)} _(s)[k+1|k+1]={circumflex over (x)} _(s)[k|k]+c _(h) Δz _(i)[k]+G[k+1]v[k+1]  (135)

where {circumflex over (x)}_(s) [k+1|k+1] is the Kalman filter estimate of x_(s)[k+1], v[k+1] is the filter innovation and G[k+1] is the Kalman gain. The difference between (134) and (135) is: {tilde over (x)} _(s)[k+1]={tilde over (x)} _(s)[k]+w _(s)[k]−G[k+1]v[k+1]  (136)

which can be rearranged to the following form: {tilde over (x)} _(s)[k]−{tilde over (x)} _(s)[k+1]+w _(s)[k]={tilde over (w)} _(s)[k]=G[k+]v[k+]  (137) Hence, R _({tilde over (w)}) _(s) [k]=G[k+1]² S[k+1]  (138)

where,

-   -   S[k+1] is the innovation covariance.

Below is an alternative or second approach that corroborates the above derivation is described. Expanding (132):

$\begin{matrix} {{{E\left\{ {{{\overset{\sim}{w}}_{s}\lbrack k\rbrack}{{\overset{\sim}{w}}_{s}\lbrack k\rbrack}} \right\}} = {\underset{\underset{E_{1}}{︸}}{E\left\{ {{{\overset{\sim}{x}}_{s}\left\lbrack {k❘k} \right\rbrack}{{\overset{\sim}{x}}_{s}\left\lbrack {k❘k} \right\rbrack}} \right\}} + \underset{\underset{E_{2}}{︸}}{E\left\{ {{{\overset{\sim}{x}}_{s}\left\lbrack {{k + 1}❘{k + 1}} \right\rbrack}{{\overset{\sim}{x}}_{s}\left\lbrack {{k + 1}❘{k + 1}} \right\rbrack}} \right\}} + \underset{\underset{E_{3}}{︸}}{E\left\{ {{w_{s}\lbrack k\rbrack}{w_{s}\lbrack k\rbrack}} \right\}} - {2\underset{\underset{E_{4}}{︸}}{E\left\{ {{{\overset{\sim}{x}}_{s}\left\lbrack {{k + 1}❘{k + 1}} \right\rbrack}{\overset{\sim}{x}\left\lbrack {k❘k} \right\rbrack}} \right\}}} + {2\underset{\underset{E_{5}}{︸}}{E\left\{ {{{\overset{\sim}{x}}_{s}\left\lbrack {k❘k} \right\rbrack}{w_{s}\lbrack k\rbrack}} \right\}}} - {2E\underset{\underset{E_{6}}{︸}}{\left\{ {{{\overset{\sim}{x}}_{s}\left\lbrack {{k + 1}❘{k + 1}} \right\rbrack}{w_{s}\lbrack k\rbrack}} \right\}}}}}\mspace{79mu}{where}\begin{matrix} {\mspace{85mu}{E_{1} = {P_{s}\left\lbrack {k❘k} \right\rbrack}}} & \; \end{matrix}} & (139) \\ {\mspace{79mu}{E_{2} = {P_{s}\left\lbrack {{k + 1}❘{k + 1}} \right\rbrack}}} & (140) \\ {\mspace{79mu}{E_{3} = \sigma_{s}^{2}}} & (141) \\ \begin{matrix} {\mspace{79mu}{E_{4} = {E\left\{ {{{\overset{\sim}{x}}_{s}\left\lbrack {k + 1} \right\rbrack}{{\overset{\sim}{x}}_{s}\left\lbrack {k❘} \right\rbrack}} \right\}}}} \\ {= {E\left\{ {\left( {{x_{s}\lbrack k\rbrack} + {w_{s}\lbrack k\rbrack} - {{\hat{x}}_{s}\left\lbrack {k❘k} \right\rbrack} - {{G\left\lbrack {k + 1} \right\rbrack}{v\left\lbrack {k + 1} \right\rbrack}}} \right){{\overset{\sim}{x}}_{s}\left\lbrack {k❘k} \right\rbrack}} \right\}}} \\ {= {E\left\{ {\left( {{{\overset{\sim}{x}}_{s}\left\lbrack {k❘k} \right\rbrack} + {w_{s}\lbrack k\rbrack} - {{G\left\lbrack {k + 1} \right\rbrack}{v\left\lbrack {k + 1} \right\rbrack}}} \right){{\overset{\sim}{x}}_{s}\left\lbrack {k❘k} \right\rbrack}} \right\}}} \\ {= {E\left\{ {\left( {{{\overset{\sim}{x}}_{s}\left\lbrack {k❘k} \right\rbrack} + {w_{s}\lbrack k\rbrack} - {{G\left\lbrack {k + 1} \right\rbrack}{H\left\lbrack {k + 1} \right\rbrack}{\overset{\sim}{x}\left\lbrack {k❘k} \right\rbrack}}} \right){{\overset{\sim}{x}}_{s}\left\lbrack {k❘k} \right\rbrack}} \right\}}} \\ {= {{E\left\{ {{{\overset{\sim}{x}}_{s}\left\lbrack {k❘k} \right\rbrack}{{\overset{\sim}{x}}_{s}\left\lbrack {k❘k} \right\rbrack}} \right\}} + \underset{\underset{= 0}{︸}}{E\left\{ {{w_{s}\lbrack k\rbrack}{{\overset{\sim}{x}}_{s}\left\lbrack {k❘k} \right\rbrack}} \right\}} -}} \\ {{G\left\lbrack {k + 1} \right\rbrack}{H\left\lbrack {k + 1} \right\rbrack}E\left\{ {{{\overset{\sim}{x}}_{s}\left\lbrack {k❘k} \right\rbrack}{{\overset{\sim}{x}}_{s}\left\lbrack {k❘k} \right\rbrack}} \right\}} \\ {= {\left( {1 - {{G\left\lbrack {k + 1} \right\rbrack}{H\left\lbrack {k + 1} \right\rbrack}}} \right){P_{s}\left\lbrack {k❘k} \right\rbrack}}} \end{matrix} & (142) \\ {\mspace{79mu}{E_{5} = 0}} & (143) \\ \begin{matrix} {\mspace{79mu}{E_{6} = {E\left\{ {{{\overset{\sim}{x}}_{s}\left\lbrack {k + 1} \right\rbrack}{w_{s}\lbrack k\rbrack}} \right\}}}} \\ {= {{E\left\{ {{{\overset{\sim}{x}}_{s}\left\lbrack {k❘k} \right\rbrack}{w_{s}\lbrack k\rbrack}} \right\}} + {E\left\{ {{w_{s}\lbrack k\rbrack}{w_{s}\lbrack k\rbrack}} \right\}} -}} \\ {{G\left\lbrack {k + 1} \right\rbrack}{H\left\lbrack {k + 1} \right\rbrack}E\left\{ {{{\overset{\sim}{x}}_{s}\left\lbrack {k❘k} \right\rbrack}{w_{s}\lbrack k\rbrack}} \right\}} \\ {= \sigma_{s}^{2}} \end{matrix} & (144) \\ \begin{matrix} {{E\left\{ {{{\overset{\sim}{w}}_{s}\lbrack k\rbrack}{{\overset{\sim}{w}}_{s}\lbrack k\rbrack}} \right\}} = {{E\; 1} + {E\; 2} + {E\; 3} - {2E\; 4} + {2E\; 5} - {2E\; 6}}} \\ {= {{P_{s}\left\lbrack {k❘k} \right\rbrack} + {P_{s}\left\lbrack {\left\lbrack {{k + 1}❘{k + 1}} \right\rbrack + \sigma_{s}^{2} -} \right.}}} \\ {{2\left( {1 - {{G\left\lbrack {k + 1} \right\rbrack}{H\left\lbrack {k + 1} \right\rbrack}}} \right){P_{s}\left\lbrack {k❘k} \right\rbrack}} - {2\sigma_{s}^{2}}} \\ {= {{P_{s}\left\lbrack {k❘k} \right\rbrack} + {\left( {1 - {{G\left\lbrack {k + 1} \right\rbrack}{H\left\lbrack {k + 1} \right\rbrack}}} \right)^{2}{P_{s}\left\lbrack {k❘k} \right\rbrack}} + \sigma_{s}^{2} +}} \\ {{{G\left\lbrack {k + 1} \right\rbrack}{R_{D}\lbrack 0\rbrack}{G\left\lbrack {k + 1} \right\rbrack}} + \sigma_{s}^{2} -} \\ {2\left( {{\left\lbrack {1 - {{G\left\lbrack {k + 1} \right\rbrack}{H\left\lbrack {k + 1} \right\rbrack}}} \right){P_{s}\left\lbrack {k❘k} \right\rbrack}} - {2\sigma_{s}^{2}}} \right.} \\ {= {{{G\left\lbrack {k + 1} \right\rbrack}^{2}{H\left\lbrack {k + 1} \right\rbrack}^{2}{P_{s}\left\lbrack {k❘k} \right\rbrack}} +}} \\ {{G\left\lbrack {k + 1} \right\rbrack}{R_{D}(0)}{G\left\lbrack {k + 1} \right\rbrack}} \\ {= {{G\left\lbrack {k + 1} \right\rbrack}^{2}\left( {{{H\left\lbrack {k + 1} \right\rbrack}^{2}{P_{s}\left\lbrack {k❘k} \right\rbrack}} + {R_{D}(0)}} \right)}} \\ {= {{G\left\lbrack {k + 1} \right\rbrack}^{2}{S\left\lbrack {k + 1} \right\rbrack}}} \end{matrix} & (145) \end{matrix}$

The following relates to a closed form derivation of total least square (TLS) capacity estimate. Writing the 2×2 matrix A

S_(H) ^(k) as:

$\begin{matrix} {A = \begin{bmatrix} \sigma_{11} & \sigma_{12} \\ \sigma_{12} & \sigma_{22} \end{bmatrix}} & (146) \end{matrix}$

The eigenvalues of A satisfies

$\begin{matrix} {{{A - {\lambda\; I}}} = 0} & (147) \\ {{\begin{matrix} {\sigma_{11} - \lambda} & \sigma_{12} \\ \sigma_{12} & {\sigma_{22} - \lambda} \end{matrix}} = 0} & (148) \end{matrix}$

which simplifies to

$\begin{matrix} {\lambda_{1} = \frac{\sigma_{11} + \sigma_{22} + \sqrt{\left( {\sigma_{11} - \sigma_{22}} \right)^{2} + {4\left( \sigma_{12} \right)^{2}}}}{2}} & (149) \\ {\lambda_{2} = \frac{\sigma_{11} + \sigma_{22} - \sqrt{\left( {\sigma_{11} - \sigma_{22}} \right)^{2} + {4\left( \sigma_{12} \right)^{2}}}}{2}} & (150) \end{matrix}$

where λ₁ is the largest eigenvalue and λ₂ is the smallest eigenvalue. The eigenvector corresponding to λ₂ satisfies

$\begin{matrix} {{{Av}_{2}^{\kappa} = {\lambda_{2}v_{2}^{\kappa}}}{where}} & (151) \\ {{v_{2}^{\kappa} = \begin{bmatrix} \frac{- \sigma_{12}}{\sqrt{\sigma_{12}^{2} + \left( {\sigma_{11} - \lambda_{2}} \right)^{2}}} \\ \frac{\sigma_{11} - \lambda_{2}}{\sqrt{\sigma_{12}^{2} + \left( {\sigma_{11} - \lambda_{2}} \right)^{2}}} \end{bmatrix}}{{{for}\mspace{14mu}{example}},}} & (152) \\ {{v_{2}^{\kappa}(1)} = \frac{- \sigma_{12}}{\sqrt{\sigma_{12}^{2} + \left( {\sigma_{11} - \lambda_{2}} \right)^{2}}}} & (153) \\ {{{v_{2}^{\kappa}(2)} = \frac{\sigma_{11} - \lambda_{2}}{\sqrt{\sigma_{12}^{2} + \left( {\sigma_{11} - \lambda_{2}} \right)^{2}}}}{and}} & (154) \\ {{{\hat{C}}_{TLS}^{- 1}\lbrack\kappa\rbrack} = {{- \frac{v_{2}^{\kappa}(1)}{v_{2}^{\kappa}(2)}} = \frac{S_{H}^{k}\left( {1,2} \right)}{{S_{H}^{k}\left( {1,1} \right)} - {\Lambda^{\kappa}\left( {2{,2}} \right)}}}} & {(155)\lbrack 6\rbrack} \end{matrix}$

The following relates to transformation of the inverse capacity estimates. An example implementation includes an approach to get the capacity estimate and the estimation error variance based on the inverse estimate and the inverse estimation error variance. Assigning simple variables for inverse capacity estimate and the error variance, for example, x≅C _(TLS) ⁻¹[κ]  (156) x ₀ ≅E{x}=Ĉ _(TLS) ⁻¹[κ]  (157) R _(x) ≅E{(x−x ₀)² }={circumflex over (R)} _(TLS)[κ]  (158)

Defining:

$\begin{matrix} {{y \cong {f(x)}} = \frac{1}{x}} & (159) \end{matrix}$

our objective is to find approximations for E{y} and E{(y−E{y})²}.

The following relates to determining the expected value of y. The second order Taylor series approximation is given by:

$\begin{matrix} {y = {{f(x)} = {{f\left( x_{0} \right)} + {{f^{\prime}\left( x_{0} \right)}\left( {x - x_{0}} \right)} + {\frac{1}{2}{f^{''}\left( x_{0} \right)}\left( {x - x_{0}} \right)^{2}}}}} & (160) \end{matrix}$

The second order approximation of E{y} is given by:

$\begin{matrix} \begin{matrix} {{E\left\{ y \right\}} = {{E\left\{ {f\left( x_{0} \right)} \right\}} + {{f^{\prime}\left( x_{0} \right)}\underset{\underset{= 0}{︸}}{\left( {{E\left\{ x \right\}} - {E\left\{ x_{0} \right\}}} \right)}} + {\frac{1}{2}{f^{''}\left( x_{0} \right)}}}} \\ {E\left\{ \left( {x - x_{0}} \right)^{2} \right\}} \\ {= {\frac{1}{x_{0}} + \frac{R_{x}}{x_{0}^{3}}}} \end{matrix} & (161) \end{matrix}$

The following relates to determining the variance of the expected value of y. Expanding f(x) as a first order Taylor series around the true value x₀. y=f(x)=f(x ₀)+f′(x ₀)(x−x ₀)  (162)

The variance of y is given by:

$\begin{matrix} \begin{matrix} {{E\left\{ \left( {y - {E\left\{ y \right\}}} \right)^{2} \right\}} = {E\left\{ \left( {{f^{\prime}\left( x_{0} \right)}\left( {x - x_{0}} \right)} \right)^{2} \right\}}} \\ {= \frac{R_{x}}{x_{0}^{4}}} \end{matrix} & (163) \end{matrix}$

Now, the expected values of the capacity estimate and its estimation error variance are given by:

$\begin{matrix} {{C_{TLS}\lbrack\kappa\rbrack} = {\frac{1}{{\hat{C}}_{TLS}^{- 1}\lbrack\kappa\rbrack} + \frac{{\hat{R}}_{TLS}\lbrack\kappa\rbrack}{\left( {{\hat{C}}_{TLS}^{- 1}\lbrack\kappa\rbrack} \right)^{3}}}} & (164) \\ {{R_{TLS}\lbrack\kappa\rbrack} = \frac{{\hat{R}}_{TLS}\lbrack\kappa\rbrack}{\left( {{\hat{C}}_{TLS}^{- 1}\lbrack\kappa\rbrack} \right)^{4}}} & (165) \end{matrix}$

The disclosure continues with state of charge (SOC) tracking, which may reference the following notations.

a[k]^(T) Voltage drop model

ã[k]^(T) Modified voltage drop model used in SOC tracking

BFG Battery fuel gauge

b Voltage drop model parameter

{tilde over (b)} Modified voltage drop model parameter used in SOC tracking

C_(batt) Battery capacity

c_(h) Coulomb counting coefficient

G[k+1] SOC tracking filter gain

h[k] Hysteresis voltage of the battery

i[k] Current through battery

i₁[k] Current through R₁

i₂[k] Current through R₂

K_(i) OCV parameters: K₀, K₁, K₂, K₃, K₄, K₅, K₆ K₇

n_(D)[k] Voltage drop observation noise

n_(i)[k] Noise in measured current

n_(v)[k] Noise in measured voltage

n_(z) _(v) [k] Noise in measurement model

OCV Open circuit voltage

P_(s)[k+1|k] SOC estimation error variance

P [k+1|k+1] SOC estimation error variance

R₀ Battery internal resistance in series

R₁ Battery internal resistance in R₁C₁ circuit

R₂ Battery internal resistance in R₂C₂ circuit

R_(n) _(D) Autocorrelation of the voltage drop observation noise

SOC State of charge

s[k] State of charge (SOC)

U[k] Cross correlation between measurement and process noise

v[k] Voltage across battery terminals

V₀(s[k]) Open circuit voltage (OCV)

x_(h) [k] State component corresponding to h[k]

x_(i) ₁ [k] State component corresponding to i₁[k]

x_(i) ₂ [k] State component corresponding to i₂[k]

x_(s)[k] State component corresponding to s[k]

{circumflex over (x)}_(s) [k+1 k] Predicted SOC estimate

{circumflex over (x)}_(s)[k+1|k+1] Update SOC estimate

x[k] States in vector form

z_(i)[k] Measured current

z_(v)[k] Measured voltage

α_(i)(k) Current decay coefficient in RC circuit,

$e^{- \frac{\Delta}{R_{i}C_{i}}}$ Δ Time difference between adjacent samples ε_(x) _(s) [k] SOC tracking error η_(c) Charging efficiency η_(d) Discharging efficiency

In this example implementation, state of charge (SOC) of electrochemical storage devices (batteries) is tracked based on instantaneous terminal voltage, load current, and temperature measurements. An SOC tracking algorithm uses the knowledge of model parameter estimates and of the battery capacity estimate described above. Example SOC tracking models hysteresis as an error in the open circuit voltage (OCV) and employs a combination of parameter estimation and SOC tracking technique to compensate for it. This obviates the need for offline modeling of hysteresis as a function of SOC and load current. The example model results in a reduced order (e.g., single state) filtering for SOC tracking where no additional variables need to be tracked regardless of the level of complexity of the battery equivalent model. The presence of correlated noise is identified and used for improved SOC tracking. As a deviation from the conventional “one model fits all” strategy, four different equivalent models of the battery are identified that represent four unique modes of typical battery operation and develop the framework for seamless SOC tracking based on the appropriate model.

A typical reduced order state filtering approach that includes joint (recursive) estimation of SOC along with other redundant (nuisance) quantities involves computationally expensive matrix operations and reduces the accuracy of SOC estimation. In this example implementation, a reduced order filtering that does not increase the state space dimension resulting in better SOC accuracy and reduced computational complexity is utilized. The need for hysteresis modeling is obviated by modeling hysteresis as the error in the OCV and the online filtering approach continuously tries to fill the gap by adjusting SOC (to the correct value.) Hence, hysteresis is modeled as a time-varying bias. A noise whitening procedure is applied and a modified state-space model is derived in order to ensure that the SOC tracking algorithm yields the best possible results in the sense of minimum mean square error. SOC is tracked using different “modes” of the battery. At least four different battery equivalent models are used to reflect very light loading or rest state, constant current operations or low frequency loading (e.g., charging), dynamic loads and heavy loads. Four (slightly) different dynamic equivalent models are identified in order to best match these modes as well. The proposed reduced order filtering approach ensures seamless SOC tracking regardless of the mode changes in the battery operation.

The following discussion relates to an exemplary system model. The battery equivalent circuit model considered in this paper is shown in FIG. 13A. When the battery is at rest, V₀(s[k]) is the OCV of the battery. The OCV uniquely depends on the SOC of the battery, s[k]. When the battery is active, for example, when there is current activity, the behavior of the battery is represented through the dynamic equivalent circuit consisting of a hysteresis component h[k], a series resistance R₀ and two parallel RC circuits in series, (R₁,C₁) and (R₂, C₂). The discrete time is indicated using [k].

The battery equivalent circuit model considered in this section shown in FIG. 13A. The terminal voltage v[k] in terms of the components of the battery equivalent circuit is given by: v[k]=V(s[k])+i[k]R ₀ +i ₁[k]R ₁ +i ₂[k]R ₂ +h[k]   (166)

where V₀(s[k]) represents the open circuit voltage (in volts) of the battery at time k which is written here as a function of SOC at time k, s[k]∈[0,1]; h[k] accounts for the hysteresis in the battery voltage; i_(l)[k] and i₂[k] are the currents through R₁ and R₂, respectively.

There are several nonlinear representations that approximate the OCV as a function of SOC. In this example implementation, an inverse polynomial-log-linear model for the representation of OCV in terms of SOC:

$\begin{matrix} {{V_{0}\left( {s\lbrack k\rbrack} \right)} = {K_{0} + \frac{K_{1}}{s\lbrack k\rbrack} + \frac{K_{2}}{s^{2}\lbrack k\rbrack} + \frac{K_{3}}{s^{3}\lbrack k\rbrack} + \frac{K_{4}}{s^{4}\lbrack k\rbrack} + {K_{5}{s\lbrack k\rbrack}} + {K_{6}{\ln\left( {s\lbrack k\rbrack} \right)}} + {K_{7}{\ln\left( {1 - {s\lbrack k\rbrack}} \right)}}}} & {(167)\lbrack 3\rbrack} \end{matrix}$

where K₀, K₁, K₂, K₃, K₄, K₅, K₆ and K₇ can be estimated offline through OCV-SOC characterization. The instantaneous change in SOC can be written in the following form (the subscript of x is introduced to indicate a state component): x _(s)[k+1]≅s[k+1]=s[k]+c _(h) Δi[k]  (168) where i[k] is in Amps, c _(h)=η/3600C _(batt)  (169)

is the Coulomb counting coefficient in Amp⁻¹ sec⁻¹, C_(batt) is the capacity of the battery in Ampere hours (Ah), Δ is the sampling interval in seconds and η is a constant that depends on whether the battery is being charged or discharged, for example,

$\begin{matrix} {\eta = \left\{ \begin{matrix} \eta_{c} & {{i\lbrack k\rbrack} > 0} \\ \eta_{d} & {{i\lbrack k\rbrack} < 0} \end{matrix} \right.} & (170) \end{matrix}$

It should be noted that (168) yields the instantaneous SOC of the battery. This technique of computing the SOC is referred to as Coulomb counting and/or as the “predicted SOC”. Coulomb counting, assumes knowledge of the initial state of charge and perfect knowledge of battery capacity to compute the remaining state of charge after accounting for the amount of Coulombs transferred from/into the battery. Coulomb counting error includes (1) uncertainty in the knowledge of initial SOC; (2) uncertainty in the knowledge of battery capacity; and (3) errors in measured Coulombs as a result of errors in the measured current and errors in time differences due to timing oscillator inaccuracies/drifts.

The current i[k] is measured and the current measurement is subject to errors. The measured current z_(i)[k] is written as: z _(i)[k]=i[k]+n _(i)[k]  (171)

where n_(i)[k] is the current measurement noise, which is considered white, zero-mean and with known standard deviation (s.d.)σ_(i). The state equation (168) can be rewritten by substituting z_(i)[k] for i[k] as follows: x _(s)[k+1]=x _(s)[k]+c _(h) Δz _(i)[k]−c _(h) Δn _(i)[k]  (172)

The currents through the resistors R₁ and R₂ can be written in the following form x _(i) ₁ [k+1]≅i ₁[k+1]=α₁ i ₁[k]+(1−α₁)i[k]  (172) x _(i) ₂ [k+1]≅i ₂[k+1]=α₂ i ₂[k]+(1−α₂)i[k]  (173) where

$\begin{matrix} {\alpha_{1} = e^{- \frac{\Delta}{R_{1}C_{1}}}} & (174) \\ {\alpha_{2} = e^{- \frac{\Delta}{R_{2}C_{2}}}} & (175) \end{matrix}$

By substituting the measured current z_(i)[k] for i[k], the currents in (172) and (173) can be rewritten as follows: x _(i) ₁ [k+1]=α₁ x _(i) ₁ [k]+(1−α₁)z _(i)[k]−(1−α₁)n[k]  (176) x ₁ ₂ [k+1]=α₂ x _(i) ₂ [k]+(1−α₂)z[k]−(1−α₂)n _(i)[k]  (177)

The hysteresis voltage h[k] is a nonlinear function of the load current and SOC of the battery. The hysteresis process can be written as: x _(h)[k]≅h[k]=f _(h)(x _(s)[k],i[k])x _(h)[k]+n _(h)[k]  (178)

where n_(h)[k] is the process noise of the hysteresis model which is assumed white, zero-mean Gaussian and with s.d. σ_(h). The voltage in (166) is a measured quantity and the measured voltage z_(v)[k] is subject to errors. The measured voltage is written as:

$\begin{matrix} \begin{matrix} {{z_{v}\lbrack k\rbrack} = {{v\lbrack k\rbrack} + {n_{v}\lbrack k\rbrack}}} \\ {= {{V_{0}\left( {s\lbrack k\rbrack} \right)} + {{i\lbrack k\rbrack}R_{0}} + {{i_{1}\lbrack k\rbrack}R_{1}} + {{i_{2}\lbrack k\rbrack}R_{2}} + {h\lbrack k\rbrack} + {n_{v}\lbrack k\rbrack}}} \end{matrix} & (179) \end{matrix}$

where n_(v)[k] is assumed to be white Gaussian noise with zero mean and s.d. σ_(v). Now, by substituting (171), (172), (173) and (178), in (179), the following measurement model is derived: z[k]=V ₀(x _(s)[k])+z _(i)[k]R ₀ +x _(i) ₁ [k]R ₁ +x _(i) ₂ [k]R ₂ +x _(h)[k]+n _(z) _(v) [k]  (180) where, n _(z) _(v) [k]=n _(v)[k]−R ₀ n _(i)[k]  (181)

Now, given the instantaneous voltage and current measurements, z_(v)[k] and z_(i)[k], the objective of BFG is to track the instantaneous SOC of the battery x_(s)[k]. The presence of “nuisance” variables x_(i) ₁ [k], x_(i) ₂ [k], and x_(h)[k] in the observation model (180) makes it a joint estimation problem, i.e., SOC and these variables have to be jointly estimated. This can be achieved by forming a multidimensional process and measurement model in vector from as shown in (183)-(189) and/or by applying Bayesian nonlinear filtering techniques in order to recursively estimate:

$\begin{matrix} {\lbrack k\rbrack \cong \begin{bmatrix} {x_{s}\lbrack k\rbrack} \\ {x_{h}\lbrack k\rbrack} \\ {x_{i_{1}}\lbrack k\rbrack} \\ {x_{i_{2}}\lbrack k\rbrack} \end{bmatrix}} & (182) \end{matrix}$

given all the measurements up to time k, {[0][1][2], . . . , [k]} where consists of (171) and (180). This can be efficiently performed by applying well known nonlinear filtering techniques such as the extended Kalman filter (EKF), unscented Kalman filter (UKF) or the particle filter. The process equations (172), (176), (177) and (178) can be written in vector form as:

$\begin{matrix} {\begin{bmatrix} {x_{s}\left\lbrack {k + 1} \right\rbrack} \\ {x_{h}\left\lbrack {k + 1} \right\rbrack} \\ {x_{i_{1}}\left\lbrack {k + 1} \right\rbrack} \\ {x_{i_{2}}\left\lbrack {k + 1} \right\rbrack} \end{bmatrix} = {{{{\begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & {f_{h}\left( {{s\lbrack k\rbrack},{i\lbrack k\rbrack}} \right)} & 0 & 0 \\ 0 & 0 & \alpha_{1} & 0 \\ 0 & 0 & 0 & \alpha_{2} \end{bmatrix}\begin{bmatrix} {x_{s}\lbrack k\rbrack} \\ {x_{h}\lbrack k\rbrack} \\ {x_{i_{1}}\lbrack k\rbrack} \\ {x_{i_{2}}\lbrack k\rbrack} \end{bmatrix}}\begin{bmatrix} {c_{h}\Delta} \\ 0 \\ {1 - \alpha_{1}} \\ {1 - \alpha_{2}} \end{bmatrix}}{z_{i}\lbrack k\rbrack}} + {\begin{bmatrix} {{- c_{h}}\Delta} & 0 \\ 0 & 1 \\ {\alpha_{1} - 1} & 0 \\ {\alpha_{2} - 1} & 0 \end{bmatrix}\begin{bmatrix} {n_{i}\lbrack k\rbrack} \\ {n_{h}\lbrack k\rbrack} \end{bmatrix}}}} & (183) \end{matrix}$

or, written compactly as: x[k+1]=F _(k) x[k]+u[k]+F _(k) w[k]  (184)

where,

$\begin{matrix} {{w\lbrack k\rbrack} = \begin{bmatrix} {n_{i}\lbrack k\rbrack} \\ {n_{h}\lbrack k\rbrack} \end{bmatrix}} & (185) \end{matrix}$

is a white noise vector with zero mean and covariance:

$\begin{matrix} {\Sigma_{w} = \begin{bmatrix} \sigma_{i}^{2} & 0 \\ 0 & \sigma_{h}^{2} \end{bmatrix}} & (186) \end{matrix}$

Correspondingly, the measurement equation (180) can be written as: z _(v)[k]=g([k])+z _(i)[k]R ₀ +n _(z) _(v) [k]  (187) where, g([k])=V ₀(x[k])+x _(h)[k]+x _(i) ₁ [k]R ₁ +x _(i) ₂ [k]R ₂  (188) and n_(z)[k] noise vector with zero mean and s.d. σ_(z)=√{square root over (σ_(v) ² +R ₀ ²σ_(i) ²)}  (189)

In addition, it should be noted that the state-space representation (183)-(189) involves the following model parameters which need to be estimated through system identification techniques including battery capacity: C_(batt), open circuit voltage model parameters: K₀, K₁, K₂, K₃, K₄, K₅, K₆, K₇, dynamic equivalent circuit model parameters: R₀, R₁, C₁, R₂, C₂, charging and discharging efficiencies: η_(c), η_(d), process noise variances: σ_(i) ², σ_(h) ², and measurement noise variances σ_(v) ², σ_(i) ².

The requirement to estimate all the model parameters makes the SOC tracking problem more challenging. Further, the chemical properties of the battery change as a result of temperature changes, aging, and usage patterns and as a result these model parameters are subject to change over time. Hence the model parameters have to be re-estimated over time.

In example implementations, it is assumed that the OCV parameters K₀,K₁, . . . , K₇ of the battery are estimated offline. A procedure to estimate these parameters is described above. The voltage and current measurement error standard deviations, σ_(v) and σ_(i), respectively, are assumed to be available from the measurement circuitry design. The charging and discharging efficiencies, η_(c), and η_(d), respectively, are assumed to be known through calibration. Hence, the objective is to develop an online SOC tracking algorithm by assuming the knowledge of battery capacity C_(batt) and the electrical equivalent model parameters R₀, R₁, R₂, C₁ and C₂ of the battery.

The following discussion relates to SOC tracking. The objective of reduced order filtering is to track x[k] while avoiding the need to track the redundant variables x_(i) ₁ [k], x_(i) ₂ [k] and x_(h) [k]. First, rewriting (172) in the following form: x[k+1]=x _(s)[k]+c _(h) Δz _(i)[k]+w _(s)[k]  (190) where, w _(s)[k]=−c _(h) Δn _(i)[k]  (191)

is the process noise which is white with s.d. σ_(s) =c _(h)Δσ_(i)  (192)

Now, rewriting the voltage measurement (180) as: z _(v)[k]=V ₀(x _(s)[k])+a[k]^(T) b+n _(D)[k]  (193)[4]

where, a[k]^(T) b=[v _(D)[k−1]v _(D)[k−2]z _(i)[k]z _(i)[k−1]−z[k−2]1]   (194)

and the voltage drop is given by: v _(D)[k]=z _(v)[k]−V ₀(x _(s)[k])  (195)

where b is a parameter vector to be estimated and n_(D)[k] is the measurement noise. It should be noted that [k] in (194) is defined in terms of the voltage drops v_(D)[k−1] and v_(D)[k−2]. Estimating parameter b based on a voltage drop observation model is described above. The estimated parameters are derived in terms of the parameters of the battery equivalent model in FIG. 13A as: b(1)≅α(k)=α₁+α₂  (196) b(2)≅β(k)=α₁α₂  (197) b(3)=R ₀  (198) b(4)≅Ř ₁=(α₁+α₂)R ₀−(1−α)R ₁−(1−α₂)R ₂  (199) b(5)≅Ř ₂=α₁α₂ R ₀−α₂(1−α₁)R ₁−α₁(1−α₂)R ₂  (200) b(6)≅ĥ[k]=x _(h)[k]−α(k)x _(h)[k−1]+β(k)x _(h)[k−2]  (201)

The measurement noise n_(D)[k] is zero mean and with autocorrelation

n_(D)(1) given by:

$\begin{matrix} {{{\mathcal{R}_{n_{D}}(l)} \cong {E\left\{ {{n_{D}\lbrack k\rbrack}{n_{D}\left\lbrack {k - l} \right\rbrack}} \right\}}} = \left\{ \begin{matrix} {{\left( {1 + \alpha^{2} + \beta^{2}} \right)\sigma_{v}^{2}} + {\left( {R_{0}^{2} + {\overset{︶}{R}}_{1}^{2} + {\overset{︶}{R}}_{2}^{2}} \right)\sigma_{i}^{2}}} & {{l} = 0} \\ {{{- \alpha}\;\sigma_{v}^{2}} - {R_{0}{\overset{︶}{R}}_{1}\sigma_{i}^{2}}} & {{l} = 1} \\ {{\beta\;\sigma_{v}^{2}} + {R_{0}{\overset{︶}{R}}_{2}\sigma_{i}^{2}}} & {{l} = 2} \\ 0 & {{l} > 2} \end{matrix} \right.} & (202) \end{matrix}$

Next, the significance of the voltage drop in estimating the parameters b in (193) is described. Using (193), the voltage drop (195) can be written as: v _(D)[k]=a[k]^(T) b+n _(D)[k]  (203)

Given the voltage drop observations, the above model (203) can be used to linearly estimate b. However, in order to get the voltage drop as an observation, the knowledge of the SOC x_(s)[k] for which a predicted value of SOC, {circumflex over (x)}_(s)[k|k−1] or the updated SOC estimate {circumflex over (x)}_(s)[k|k] can be used, for example, V _(D)[k|k]=z _(v)[k]−V ₀({circumflex over (x)} _(s)[k|k])  (204)

Below, how the predicted SOC {circumflex over (x)}_(s)[k|k−1] and updated SOC {circumflex over (x)}_(s)[k|k] are obtained (see (209) and (215), respectively) is described. The existing approaches for BFG use the voltage and current observations, z_(v)[k] and z_(i)[k], for model identification and SOC tracking. Consider the conventional voltage observation model (180). The terms in x_(h)[k] denote the hysteresis voltage which, as shown in (178), is a function of current i[k], SOC x_(s)[k] and time k. For example, when a battery experiences a load of 1 A (which is heavy in mobile applications) for a few seconds, the magnitude of the resulting hysteresis is small compared to when the load was 1 A continuously for 30 min. In addition, the magnitude of the hysteresis is a function of the SOC at that time as well.

Using the voltage observation (180) across battery terminals for model identification, the hysteresis x_(h)[k] also needs to be modeled and the model parameters have to be estimated. A model for hysteresis in terms of SOC, current and time is nonlinear and not yet fully understood. Another disadvantage of trying to model and estimate hysteresis is that it makes online model identification almost impossible. Because hysteresis is a function of SOC, model identification requires the data spanning the entire range of SOC. This might be impossible at times since some applications might never use the battery from full to empty. Since hysteresis is also a function of current, model identification requires usage data spanning the possible load currents applied for various durations. Hence, complete modeling and model identification of hysteresis becomes impractical.

It is also important to note that estimating model parameters offline using sample batteries and then using those parameters in fuel gauging may not be satisfactory; some of the battery parameters are known to change based on usage patterns. Example embodiments avoid hysteresis modeling by introducing the voltage drop model described above. The voltage drop v_(D)[k] represents the voltage across the internal battery model components R₀,R₁,R₂ and x_(h)[k]. The term x_(h) [k] is purposely introduced in order to account for the errors in predicted SOC z[k|k−1] that is used to derive the voltage drop “measurement” v_(D)[k]. The x_(h) [k] can be referred to as an “instantaneous hysteresis” which, according to example embodiments, should be corrected to zero by adjusting SOC estimate {circumflex over (x)}_(s)[k|k]. As described above with regard to FIG. 7, the use of the voltage drop model can be used to eliminate the effect of hysteresis. The current knowledge of SOC is used to compute the voltage drop. A batch of past voltage drops are collected in a buffer and used for estimation of the parameter b. A nonzero value of b(6)=ĥ[k](as determined in the model estimation module or block 710) indicates the presence of instantaneous hysteresis, which implies SOC estimation error. The SOC tracking algorithm is devised to correct the SOC (in the SOC tracking block 715) whenever the estimated ĥ[k] is nonzero.

The OCV-SOC model (167) represents the OCV-SOC relationship. Assuming that {circumflex over (x)}_(s)[k|k]=x_(s)[k|k] in the voltage drop (195), the estimated value of ĥ[k] in (201) will be ĥ[k]≠0. However, ĥ[k]≠0 implies errors in SOC estimates that is used in computing the voltage drop observation v_(D)[k]. Hence, the SOC tracking algorithm needs to adjust {circumflex over (x)}_(s)[k|k] accordingly. this accomplished by employing the following modified observation model in place of (193): z _(v)[k]=V ₀(x _(s)[k])+ã[k]^(T) {tilde over (b)}+n _(D)[k]  (205)[5] where, ã[k]^(T)=[v _(D)[k−1]v _(D)[k−2]z _(i)[k−1]z _(i)[k−1]−z _(i)[k−2]]  (206) {tilde over (b)}=[αβR ₀ Ř ₁ Ř ₂]^(T)  (207)

are obtained by removing the last element in a[k]^(T) and b, respectively. In other words, the hysteresis term is removed. Below, the significance of this modified observation model is described. Further, the following covariance is found between the process noise w_(s)[k] in (190) and the measurement noise n_(D)[k] in (205): E{w _(s)[k]n _(D)[k]}≅U[k]=R ₀ c _(h)Δσ²  (208)

Given the estimate of state of charge, {circumflex over (x)}_(s)[k|k], and the associated variance P_(s)[k|k], the following EKF recursion (see FIG. 8) uses the voltage and current measurements z_(v)[k+1], z_(i)[k],z_(i)[k+1] to yield the updated SOC estimate of is {circumflex over (x)}_(s)[k+1|k+1], and its associated variance P_(s)[k+11 k+1]. These steps also make sure that the SOC estimates are best adjusted to account for the covariance of (208). The filtering recursions consist of the following:

$\begin{matrix} {\mspace{20mu}{{{\hat{x}}_{s}\left\lbrack {k + 1} \middle| k \right\rbrack} = {{{\hat{x}}_{s}\left\lbrack k \middle| k \right\rbrack} + {{c_{h}\lbrack k\rbrack}\Delta\;{z_{i}\lbrack k\rbrack}}}}} & (209) \\ {\mspace{20mu}{{P_{s}\left\lbrack {k + 1} \middle| k \right\rbrack} = {{P_{s}\left\lbrack k \middle| k \right\rbrack} + \sigma_{s}^{2}}}} & (210) \\ {\mspace{20mu}{{H\left\lbrack {k + 1} \right\rbrack} = \frac{\mathbb{d}{z_{v}\lbrack k\rbrack}}{\mathbb{d}{x_{s}\lbrack k\rbrack}}}}_{{\hat{x}}_{s}{\lbrack{{k + 1}|k}\rbrack}} & (211) \\ {\mspace{20mu}{{{\hat{z}}_{v}\left\lbrack {k + 1} \right\rbrack} = {{V_{0}\left( {{\hat{x}}_{s}\left\lbrack {k + 1} \middle| k \right\rbrack} \right)} + {\lbrack k\rbrack^{T}\lbrack k\rbrack}}}} & (212) \\ {{S\left\lbrack {k + 1} \right\rbrack} = {{{H\left\lbrack {k + 1} \right\rbrack}{P\left\lbrack k \middle| k \right\rbrack}{H\left\lbrack {k + 1} \right\rbrack}^{T}} + {R_{n_{D}}(0)} + {2{H\left\lbrack {k + 1} \right\rbrack}{U\lbrack k\rbrack}}}} & (213) \\ {\mspace{20mu}{{G\left\lbrack {k + 1} \right\rbrack} = \frac{{P\left\lbrack {k + 1} \middle| k \right\rbrack}{H\left\lbrack {k + 1} \right\rbrack}^{T}{U\lbrack k\rbrack}}{S\left\lbrack {k + 1} \right\rbrack}}} & (214) \\ {{{\hat{x}}_{s}\left\lbrack {k + 1} \middle| {k + 1} \right\rbrack} = {{{\hat{x}}_{s}\left\lbrack {k + 1} \middle| k \right\rbrack} + {{G\left\lbrack {k + 1} \right\rbrack}\left( {{z_{v}\left\lbrack {k + 1} \right\rbrack} - {{\hat{z}}_{v}\left\lbrack {k + 1} \right\rbrack}} \right)}}} & (215) \\ {{P_{s}\left\lbrack {k + 1} \middle| {k + 1} \right\rbrack} = {{\left( {1 - {{G\left\lbrack {k + 1} \right\rbrack}{H\left\lbrack {k + 1} \right\rbrack}}} \right){P_{s}\left\lbrack {k + 1} \middle| k \right\rbrack}\left( {1 - {{G\left\lbrack {k + 1} \right\rbrack}{H\left\lbrack {k + 1} \right\rbrack}}} \right)^{T}} + {{G\left\lbrack {k + 1} \right\rbrack}^{2}{R_{n_{D}}(0)}}}} & {(216)\lbrack 2\rbrack} \end{matrix}$

where c_(h)[k] and {circumflex over (b)}[k] are the most recent estimates of the Coulomb counting coefficient and the model parameter vector, respectively. The importance of using ã[k]^(T) and {tilde over (b)} in the state-space model (190)-(205) for SOC tracking should be described. Hysteresis can be thought of as an error in the OCV-SOC characteristic curve. It can be difficult to model and accurately estimate the hysteresis because it varies with the previous current and SOC (see (178)). However, the true OCV-SOC relationship can be estimated. Indeed, the V₀(x_(s)[k]) in (205) is based on the true OCV-SOC model. For example, assume that the estimated hysteresis is ĥ[k]=10 mV. This means the “perceived OCV” by the filter is 10 mV away from the actual OCV of the battery. For the BFG algorithm, the perceived OCV, V₀(x[k]), is directly (and monotonically) related to the SOC estimate {circumflex over (x)}_(s)[k|k]. In other words, if the perceived OCV of the filter is different from the actual OCV, so is the filter estimate {circumflex over (x)}_(s)[k|k] from the true SOC of the battery. Hence, when the filter sees a drop of 10 mV in its predicted terminal voltage {circumflex over (z)}_(v)[k+11] in (212), it adjusts its SOC estimate {circumflex over (x)}_(s)[k+1|k+1] in (215) such that the “perceived OCV error” (or estimated hysteresis H) is (gradually) adjusted to zero. Hence, a good indication of proper functioning of the proposed approach is the estimated ĥ[k] being always close to zero.

Reliable apparatus and methods to validate a fuel gauging algorithm in a desirable fashion do not exist. Using simulations to evaluate a fuel gauge is not feasible because of the lack of, for example, reliable mathematical models that can allow simulation of the dynamics of a battery. For example, an enhanced self-correcting model may not consider the effect of aging on a battery. Validation of a fuel gauge using a single metric or validation approach can be difficult due uncertainty in the true values of state of charge, battery capacity and internal impedance, all of which can be constantly drifting quantities. Several validation metrics need to be computed in order to understand the complete picture of a fuel gauge accuracy.

The disclosure continues with benchmarking, which begins with metrics. In this example implementation, several benchmarking approaches for the validation of fuel gauging algorithms of electrochemical storage devices (batteries) are described. Relatively accurate fuel gauging (FG) can extend the cycle life of batteries. This detailed description also describes a rigorous and objective fuel gauge evaluation scheme. The metrics described herein can be used to measure the FG accuracy in several aspects and return at least one number that can be indicative of the overall performance of a fuel gauge. The benchmarking described herein can be applied to a variety of fuel gauging algorithms. For example, the details included in this description can be combined with any of the concepts described in the description entitled “Methods and Apparatus Related to Tracking Battery State of Charge: A Reduced Order Filtering Approach”.

The benchmarking described in this detailed description can be performed by, for example, computing one or more of the three metrics defined below:

A first exemplary metric is coulomb counting error. With the knowledge of battery capacity and the starting state of charge (SOC) point of an experiment, Coulomb counting methods and/or apparatus can provide an accurate estimate of the state of charge of the battery. The error (e.g., root-mean square (RMS)) between Coulomb counting based SOC estimate and the SOC estimate of the fuel gauge over a period of time can function as the first metric of the benchmark. An error between the FG based SOC and the Coulomb counting based SOC could imply one or more of the following issues with the FG under validation:

-   -   The model employed in an open circuit voltage state of charge         (OCV-SOC) characterization could be insufficiently accurate         (assuming that the FG employs an OCV-SOC characterization)     -   A battery capacity estimate by the FG might be inaccurate     -   There might be issues with a dynamic equivalent circuit model:         model selection and parameter estimation scheme used in the FG.

A second exemplary metric is OCV-SOC error. OCV-SOC characterization of the battery (which can be performed using one or more methods and/or apparatus) can provide a look-up procedure for finding the SOC. Hence, the SOC estimate of a fuel gauge at a given time can be compared for errors with the OCV-SOC characterization by bringing a battery to a fully (or at least a partial) rested state and by measuring its voltage. An OCV-SOC error can be an indicator of one or more of the following issues of a fuel gauge:

-   -   A dynamic model employed in the battery equivalent model may not         be effective     -   Minimal OCV-SOC error can indicate that the dynamic model         employed matches very well the actual dynamic nature of the         battery.

A third exemplary metric is predicted time-to-voltage (TTV) error. A fuel gauge can predict (using one or more methods and/or apparatus) the time it takes to reach a certain voltage (TTV) given a constant load/charge current. Time to shut down (TTS) and time to full (TTF) can be special cases of the TTV estimates. Error in the TTV estimate can be computed after the actual voltage in question is reached. This TTV error can indicate one or more of the following about the fuel gauge under evaluation:

-   -   Accuracy of the battery impedance estimation,     -   Battery capacity estimation accuracy of a fuel gauge,     -   The fuel gauge's knowledge (e.g., information) of the battery         SOC,     -   Accuracy of the OCV-SOC characterization.

A battery can exhibit different qualities in response to changes in temperatures. For example, a battery's impedance can be higher (and hence the available power can be lower) at cold temperatures. The rate of change of OCV can be greater and heavily non-linear in response to load and at lower SOC compared to the same at higher SOC levels. A good fuel gauge can have the ability to perform well over a wide range of temperatures and SOC levels. The benchmark described herein can be configured to ensure at least some of these elements are factored in during the performance evaluation.

The discussion below relates to OCV-SOC characterization based metrics. The state of charge of a battery can be uniquely related to its open circuit voltage (OCV). An example of such relationship is shown as a plot in FIG. 14.

Several approaches can be used to obtain OCV characterization data. An example approach is summarized below:

-   -   1) Start with a fully charged, fully rested battery     -   2) Record its open circuit voltage V_(BAT)=Vf_(full)     -   3) Set i=1     -   4) Record OCV(i)=V_(BAT)     -   Record SOC(i)=1     -   5) Set i=i+1     -   6) Discharge the battery using constant current I for a duration         of ΔT     -   7) Leave the battery to sufficiently rest (e.g., at least for 2         hours)     -   8) Measure the battery terminal voltage, V_(BAT)     -   9) Record OCV(i)=V_(BAT)     -   Compute SOC(i)=SOC(i−1)+c_(h)I(i) ΔT where c_(h)I=η/(3600         C_(batt)), η is a constant indicating the charging/discharging         efficiency, C_(batt) is the battery capacity in Ampere hours         (Ah) and I(i) is the current into the battery.     -   10) Repeat steps 5 to 9 until OCV(i) reaches the shut down         voltage VSD of the battery.

Now, using the {OCV(i); SOC(i)} pairs, an OCV characterization can be obtained for SOC∈[0; 1].

Remarks:

1) OCV-SOC characterization can vary from one temperature to another. (several approaches can be used to compute OCV characterization at any temperature within a certain usage range).

2) In some implementations, battery capacity C_(batt) can be obtained from manufacturer data sheets or it can be estimated.

3) OCV-SOC characterization can be unchanged regardless of the age of the battery.

5) Using the above OCV-SOC characterization, the OCV of a battery for a given SOC s, written as v=OCV(s), can be computed.

5) Using the above OCV-SOC characterization, the SOC of a battery for a given rested terminal voltage v_(r), written as s=OCV⁻¹(v_(r)), can be computed. Given that the SOC estimate of a certain fuel gauging algorithm at time k is reported as sFG[k], the corresponding error can be computed as ϵOCV=sFG[k]−OCV ⁻¹(v _(r)[k])  (217) where v_(r)[k] is the terminal voltage (after resting the battery) at time k.

OCV-SOC characterization based validation can be used to compute the OCV errors (217) across temperatures and/or SOC regions.

Validation in a relatively high SOC region can be performed by starting with a fully charged battery and applying a time-varying load for a time sufficient to consume (approximately) less than ½ the capacity of the battery under test. Similarly, validation in the low SOC region can be performed by starting with either a fully charged battery or the battery after the high SOC validation and by applying dynamic load sufficient to bring the battery to the lower SOC region.

The average OCV-SOC error (in %) can be computed as

$\begin{matrix} {{\overset{\_}{\epsilon}}_{OCV} = {\left\lbrack {{\frac{1}{8}{\sum\limits_{i = 1}^{4}{\epsilon_{OCV}\left( {s_{L},T_{i}} \right)}}} + {\epsilon_{OCV}\left( {s_{H},T_{i}} \right)}} \right\rbrack 100}} & (218) \end{matrix}$

where ϵOCV(s_(L), T_(i)) indicates the error computed at the low SOC region and at temperature T_(i). In some implementations, the lower ϵOCV the better the FG algorithm.

The following discussion relates to relative coulomb counting error based metrics. Battery SOC can be computed by the Coulomb counting (CC) as follows ŝ _(CC)[k]=ŝ _(CC)[k−1]+c _(h)∫_(tk−1) ^(tk) I[t]dt  (219)

under the assumption that the battery capacity C_(batt) and an accurate enough starting SOC, ŝ_(CC)[0], are known. Hence, the FG error (in %) related to Coulomb counting can be defined as:

$\begin{matrix} {{\overset{\_}{\epsilon}}_{CC} = {\frac{\sqrt{\sum\limits_{k = 1}^{T}\left( {{{\hat{s}}_{CC}\lbrack k\rbrack} - {{\hat{s}}_{FG}\lbrack k\rbrack}} \right)^{2}}}{T}100}} & (220) \end{matrix}$ where T is the duration (in seconds) in which the validation test is performed.

1) In some implementations, some of fuel gauging apparatus and/or methods can include Coulomb counting as a component. However, the above metric can still be considered a validation tool due to the assumption that the knowledge of the battery capacity as well as the starting SOC of the validation ŝ_(CC)[0] whereas the FG approach, may not assume this knowledge.

2) The battery capacity for the validation ŝ_(CC)[k] can be pre-estimated by completely discharging the battery from full (or substantially full) to empty (or substantially empty). Alternatively, the validation test can be performed from full (or substantially full) to empty (substantially empty) and ŝ_(CC)[k] can be updated with the newly estimated battery capacity, C_(batt). In some implementations, hysteresis and relaxation factors can be considered in accurate battery capacity estimation this way. In some implementations, the FG algorithm can be barred from doing so.

3) In some implementations, the temperature of the battery being evaluated can remain constant during the entire (e.g., substantially the entire) validation process.

The following discussion relates to time-to-voltage (TTV) based metrics. Given an SOC estimate of a fuel gauge algorithm at time k as S_(FG)[k], the time it takes to reach voltage v can be written as follows

$\begin{matrix} {T_{{FG},v} = \frac{\left\lbrack {{{OCV}^{- 1}(v)} - {s_{FG}\lbrack k\rbrack}} \right\rbrack}{I}} & (221) \end{matrix}$ where the current I (I>0 during charging and I<0 during discharging) is kept constant (or substantially constant) until the voltage v is reached.

The actual time at which the terminal voltage v is reached can be noted once that voltage is reached during operation. When the voltage v is reached at time, the following TTV validation metric can be computed

$\begin{matrix} {\epsilon_{TTV} = {\frac{1}{T - k}\sqrt{\sum\limits_{i = k}^{T}\left( \frac{{T_{{FG},v}\lbrack i\rbrack} - {T_{v}\lbrack i\rbrack}}{T_{v}\lbrack i\rbrack} \right)^{2}}}} & (222) \end{matrix}$ where T_(v)[i]=T−i is the actual time it took from time i to reach the voltage v. The ϵTTV value can be in minutes. In some implementations, the following metric (in %) can be calculated:

$\begin{matrix} {{\overset{\_}{\epsilon}}_{TTV} = {\frac{\epsilon_{TTV}}{T}100}} & (223) \end{matrix}$

A combined metric can be defined as:

$\begin{matrix} {{\overset{\_}{\epsilon}}_{FG} = \frac{{\overset{\_}{\epsilon}}_{OCV} + {\overset{\_}{\epsilon}}_{CC} + {\overset{\_}{\epsilon}}_{TTV}}{3}} & (224) \end{matrix}$

where ϵ _(FG) is in %. In some implementations, the lower, the better the fuel gauge.

In some implementations, a benchmarking procedure can include loading a battery under evaluation with one or more different current loads that reflect a usage (e.g., a typical usage) of the battery and recording the fuel gauge reported SOC and TTV readings. This process can include repeating these steps at different temperatures until, for example, tables I, II and III are populated.

In some implementations, simulated as well as actual load profiles can be used during the validation. An advantage of the simulated load profiles is that an amount (e.g., exact amount) of Coulombs taken from the battery can be computed, hence, one or more errors due to sampling and current sensing can be avoided. This can be based on the assumption that the load simulation device may not introduce one or more significant errors. Various actual and simulated load profiles can be created.

Actual load profile: An actual load profile (e.g., shown in FIGS. 15A and 15B) can be created using, for example, a smartphone as a load. The following activities can be performed while the load is connected to a battery under validation: phone call (15 min), web surfing, reading email, game playing, etc. (20 min), texting (10 messages), listening to music or watching video using speaker phone (30 min video), standby—cell radio enabled pinging tower (1 hours).

The load profile shown in FIGS. 15A and 15B illustrates a scenario where one entry for each of the three types of metrics can be computed in a single experiment. The experiment starts with a fully charged battery and the dynamic usage load is applied for about three hours and 15 minutes. After that the battery is relaxed for two hours. The five hour mark provides an opportunity to compute an OCV-SOC error metric ϵ_(OCV)(S_(H), T_(i)). The constant current load towards the end of the experiment allows to compute ϵ_(TTV)(S_(L), T_(i)). The Coulomb counting metric ϵ_(CC)(T_(i)) can be computed from the entire data.

The load profile shown in FIGS. 15A and 15B can be used to compute the following metrics at temperature T_(i):

The OCV-OSC error metric at the high SOC region, ϵ_(OCV)(S_(H), T_(i))

The TTC metric at the low SOC region, ϵ_(TTV)(S_(L), T_(i))

The Coulomb counting metric ϵ_(CC)(T_(i))

Simulated load profile: A simulated load profile can be created using piecewise constant current loads of varying magnitudes I, for small duration Δs. These piecewise loads can be mixed and stitched together to obtain a simulated load profile shown in FIGS. 16A and 16B. Note that the simulated load can appear between approximately 3.5 hours to 6.5 hours of the test. This load profile can be simulated using, for example, a Kikusui programmable load device with Δs=2 sec, and I_(m)={40, 120, 130, 160, 300, 400, 440, 520, 600, 640, 800, 880} in mA.

The simulated load profile shown in FIGS. 16A and 16B illustrates a scenario where one entry for each of the three types of metrics can be computed in a single experiment. The experiment starts with a fully charged battery and a constant 500 mA load is applied for about 1.5 hours. After that the battery is relaxed for two hours and then the dynamic load profile is applied for three hours. The three hour and 15 minute mark provides an opportunity to compute an OCV-SOC error metric ϵ_(OCV) (S_(H), T_(j)). The constant current load towards the end of the experiment allows to compute ϵ_(TTV)(S_(L), T_(j)). The Coulomb counting metric E_(CC)(T_(j)) can be computed from the entire data.

In some implementations, the simulated load profile shown in FIG. 16 can be used to compute the following metrics at temperature T_(j):

The OCV-OSC error metric at die high SOC region, ϵ_(OCV) (S_(H), T_(j))

The TTC metric at the low SOC region, compute ϵ_(TTV)(S_(L), T_(j))

The Coulomb counting metric E_(CC)(T_(j))

The example implementations described above describe SOC tracking as applicable to battery powered devices (e.g., portable mobile devices). The described example embodiments enable linear methods that are computationally inexpensive and performance wise superior to existing approaches for online model identification. Weighted least squares methods are described for parameter estimation. Weights (based on variances) in the LS method of parameter estimation and demonstrated significant improvement in parameter estimation are described. The applicability to different modes of operation of the battery including identifying four different equivalent models of the battery that represent typical battery operation modes and developed the framework for seamless SOC tracking. The described approach models hysteresis as an error in the open circuit voltage (OCV), thereby obviating the need for modeling hysteresis as a function of SOC and load current. This method also helps in the fast recovery from wrong SOC initialization.

The example implementations described above describe features for battery capacity estimation towards the advancement of battery fuel gauging. A weighted recursive least squares (RLS) estimate of capacity with the derivation of exact weights. Formulation of the weights may be computed based on the SOC tracking error covariance and current measurement error standard deviation. A TLS approach is described for real time tracking of battery capacity. The TLS estimate is derived in closed form and can be used for adaptive estimation by updating the covariance matrix with a fading memory. A technique for adaptive capacity estimation based on OCV lookup of a rested battery. The source of OCV lookup error (hysteresis) in the derivations is considered and an approach for adaptive estimation of capacity through OCV lookup is described. An approach for optimal fusion of capacity estimates obtained through different approaches is described based on the capacity estimates and the estimation error covariance's, the proposed approach uses a Kalman filter for adaptive, optimal fusion.

The example implementations described above describe SOC tracking as applicable to battery powered devices (e.g., portable mobile devices). The conventional techniques for estimating additional, redundant parameters by stacking them on the state vector along with SOC is computationally expensive and performance wise inferior. In order to avoid these issues, example embodiments describe a reduced order filtering model for SOC tracking through a new state space model. A state-space model with de-correlated noise models is described. The SOC tracking problem involves two measured quantities, voltage and current, and that this results in correlation between the state and measurement noise models of the SOC tracking problem. A modified state-space representation that has uncorrelated state and measurement noise processes is described. Example embodiments describe different modes of operation of the battery and identify, at least, four different equivalent models of the battery that represent typical battery operation modes and developed the framework for seamless SOC tracking. Example embodiments describe an approach that models hysteresis as an error in the open circuit voltage (OCV), hence obviating the need for modeling hysteresis as a function of SOC and load current. This method also helps in the fast recovery from wrong SOC initialization.

The example implementations described above describe SOC tracking as being achieved through several strategies. First, via minimal battery modeling. The proposed approach requires offline modeling of only the open circuit voltage (OCV) characteristics of the battery. All the other required parameters are estimated through robust means. Equipped with a single set of OCV parameters, the proposed approach is able to perform SOC tracking at any temperature without requiring any additional parameters. Second, the voltage drop observation model. The voltage drop model of observations allows online SOC tracking without the need to worry about modeling the hysteresis component of the battery. This results in better accuracy and robustness from the proposed approach. Third, through robust parameter estimation. The effect of correlated noise structure in the least squares model for parameter estimation is identified. This resulted in significantly better accuracy and enhanced robustness for the parameter estimation algorithm. Fourth, through battery capacity estimation. The proposed total least square (TLS) method for capacity estimation ensures superior accuracy for capacity estimation. And finally using filtering, the reduced order EKF method is accounting for the correlation of the noise process in the state-space model (derived for SOC tracking) and applies appropriate de-correlating filter in order to minimize errors in SOC tracking.

In the detailed description, a benchmarking approach for battery fuel gauging algorithms based on at least three evaluation metrics has been described. The first evaluation metric can be based on the open circuit voltage (OCV) characterization of the battery. The second evaluation metric can be based on relative Coulomb counting error of the fuel gauge and the third benchmark can be based on the computation of time it takes the battery to reach a certain voltage. Each validation metric can include computing several metrics at various SOC levels, different temperature, voltage regions, and/or so forth.

Some SOC tracking approaches include at least the following shortcomings: (1) some models consider resistance-only and are unsuitable for dynamic loads; (2) they employ nonlinear approaches for system identification; (3) require initial parameter estimates for model identification methods; (4) a single dynamic equivalent model is assumed to represent all battery modes of operation; (5) the importance of online capacity estimation is not addressed; (6) existing online battery capacity estimation techniques are affected by SOC and parameter estimation errors, i.e., they are not robust; (7) they employ online tracking of many redundant quantities in addition to SOC (which results in increased computational complexity and reduced SOC tracking accuracy); (8) they require separate modeling of battery hysteresis, which is a function of SOC and load current (hence infinite models.) It is only possible to model hysteresis approximately; (9) none of the existing approaches recognized the existence of correlation in the process and measurement noise processes; and (10) none of the existing approaches recognize the change in battery characteristics due to temperature, aging, SOC and load variations and the fact that a single equivalent model may not fit all these conditions.

Accordingly, the implementations described herein can have a short design time (within days), can have a relatively fast algorithm convergence, and can have an accuracy of approximately 1% SOC and battery capacity reporting accuracy in “Real World” use conditions. In some implementations, no (or few) custom battery models or data may be required, and can include an adaptive learning algorithm with relatively quick SOC tracking convergence. Some implementations can include automatic temperature, age, and load compensation.

Some implementations can be based on, for example, a reduced order extended Kalman filter, a correlated measurement noise decoupling, an online electrical model parameter estimation, and a real-time capacity estimation.

The reduced order Kalman filter can include an accurate SOC estimation (tracking) that involves jointly estimating four different parameters: SOC, currents through two different resistors in the dynamic equivalent model and hysteresis, all of which change when the battery is under load/charge. This involves complex matrix operations generally known as recursive filtering. The reduced filtering approach simplifies this in a way that only the SOC is estimated through the recursive filtering procedure. The three other parameters are marginalized through mathematical operation. The resulting SOC tracking algorithm(s) is now computationally feasible in a fuel gauge SOC.

The correlated measurement noise decoupling can include Kalman filters that operate on the assumption that process noise and measurement noise are uncorrelated. In the fuel gauge application, the measurement noise inherent in the current measurement can be coupled into both the measurement noise and the process noise of the SOC and Voltage variables in the reduced EKF. A unique approach has been employed which decouples the current sense noise from the process noise of the Kalman filter.

The online electrical model parameter estimation can include dynamic estimation of the model parameters (coefficients). The dynamic estimation of the model parameters (coefficients) can include estimation as they change with SOC, time-varying current load profiles, temperature, charge-discharge cycles, and/or so forth. The EKF filter is applicable provided that the model parameters of the dynamic equivalent circuit of the battery is known, however, the equivalent circuit represents the internal components of the battery; these model parameters can be estimated as well using the measurements available from the battery: voltage and current. The solutions described herein estimate the model parameters in real time which enables use of a Kalman filter approach.

The real-time or on-line capacity estimation can include one or more algorithms updating (e.g., constantly updating) usable capacity based on actual use conditions, load, temp, age. Some implementations can include a coulomb counting method which compares FG reported to SOC to calculated SOC based on coulomb counting (book keeping method). Some implementations can include a TTE (Time to Empty) Method, which can use FG to predict TTE and compared to actual. Some implementations can include a SOC/OCV Curve Look-up Method, which can compare FG reported SOC to SOC/OCV curve.

In some implementations, a variation of batteries can be supported that have a variety of specific battery models and chemistries, battery manufacturer aging data for each battery, and/or so forth. In some implementations, the fuel gauge evaluation procedure can vary. For example, a state of charge accuracy evaluation method and test procedure, a dynamic load detailed test requirements, and/or so forth can vary. In some implementations, feedback on requirement specification such as key system parameter and accuracy requirements, system integration requirements, and/or so forth can be varied. In some implementations, operating system driver requirements can be varied.

FIG. 17 is a diagram that illustrates an example system implementation. The system 1700 includes a fuel gauge evaluation module 1705, a battery 1710, a battery fuel gauge 1715 and a computing device 1715. The fuel gauge evaluation module 1705 may be implemented as a software module or an ASIC within the BMS 110. In other words, fuel gauge evaluation module 1705 could be code stored in memory 230 and executed by processor 235 and/or another module associated with BMS 110. The computing device 1715 may receive information from the fuel gauge evaluation module 1705 and display the information on a graphical user interface (e.g., as shown in FIG. 18).

FIG. 18 is a diagram that illustrates a user interface that can be used in conjunction with a system implementation. FIGS. 19A and 19B include graphs that illustrate an example discharge voltage/current profile to illustrate an SOC Lookup Validation and a TTS test. FIGS. 20A and 20B are graphs that illustrate an example CC evaluation method to illustrate the closeness of the Fuel Gage Algorithm to Coulomb Counting. FIGS. 21A and 21B are diagrams that illustrate a TTS evaluation method which illustrates a significant overlap of the Fuel Gauge and actual SOC as well as a TTS error.

Some of the above example embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the operations as sequential processes, many of the operations may be performed in parallel, concurrently or simultaneously. In addition, the order of operations may be re-arranged. The processes may be terminated when their operations are completed, but may also have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, subprograms, etc.

Methods described above, some of which are illustrated by the flow charts, may be implemented by hardware, software, firmware, middleware, microcode, hardware description languages, or any combination thereof. When implemented in software, firmware, middleware or microcode, the program code or code segments to perform the necessary tasks may be stored in a machine or computer readable medium such as a storage medium. A processor(s) may perform the necessary tasks.

Specific structural and functional details disclosed herein are merely representative for purposes of describing example embodiments. Example embodiments, however, be embodied in many alternate forms and should not be construed as limited to only the embodiments set forth herein.

It will be understood that, although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of example embodiments. As used herein, the term “and/or” includes any and all combinations of one or more of the associated listed items.

It will be understood that when an element is referred to as being “connected” or “coupled” to another element, it can be directly connected or coupled to the other element or intervening elements may be present. In contrast, when an element is referred to as being “directly connected” or “directly coupled” to another element, there are no intervening elements present. Other words used to describe the relationship between elements should be interpreted in a like fashion (e.g., “between” versus “directly between,” “adjacent” versus “directly adjacent,” etc.).

It should also be noted that in some alternative implementations, the functions/acts noted may occur out of the order noted in the figures. For example, two figures shown in succession may in fact be executed concurrently or may sometimes be executed in the reverse order, depending upon the functionality/acts involved.

Implementations of the various techniques described herein may be implemented in digital electronic circuitry, or in computer hardware, firmware, software, or in combinations of them. Implementations may implemented as a computer program product, i.e., a computer program tangibly embodied in an information carrier, e.g., in a machine-readable storage device (computer-readable medium, a non-transitory computer-readable storage medium, a tangible computer-readable storage medium) or in a propagated signal, for processing by, or to control the operation of, data processing apparatus, e.g., a programmable processor, a computer, or multiple computers. A computer program, such as the computer program(s) described above, can be written in any form of programming language, including compiled or interpreted languages, and can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.

Portions of the above example embodiments and corresponding detailed description are presented in terms of software, or algorithms and symbolic representations of operation on data bits within a computer memory. An algorithm, as the term is used here, and as it is used generally, is conceived to be a self-consistent sequence of steps leading to a desired result. The steps are those requiring physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of optical, electrical, or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like.

In the above illustrative embodiments, reference to acts and symbolic representations of operations (e.g., in the form of flowcharts) that may be implemented as program modules or functional processes include routines, programs, objects, components, data structures, etc., that perform particular tasks or implement particular abstract data types and may be described and/or implemented using existing hardware at existing structural elements. Such existing hardware may include one or more Central Processing Units (CPUs), digital signal processors (DSPs), application-specific-integrated-circuits, field programmable gate arrays (FPGAs) computers or the like.

It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise, or as is apparent from the discussion, terms such as “processing” or “computing” or “calculating” or “determining” of “displaying” or the like, refer to the action and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical, electronic quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission or display devices.

Note also that the software implemented aspects of the example embodiments are typically encoded on some form of non-transitory program storage medium or implemented over some type of transmission medium. The program storage medium may be magnetic (e.g., a floppy disk or a hard drive) or optical (e.g., a compact disk read only memory, or “CD ROM”), and may be read only or random access. Similarly, the transmission medium may be twisted wire pairs, coaxial cable, optical fiber, or some other suitable transmission medium. The example embodiments not limited by these aspects of any given implementation.

While certain features of the described implementations have been illustrated as described herein, many modifications, substitutions, changes and equivalents will now occur to those skilled in the art. It is, therefore, to be understood that the appended claims are intended to cover all such modifications and changes as fall within the scope of the implementations. It should be understood that they have been presented by way of example only, not limitation, and various changes in form and details may be made. Any portion of the apparatus and/or methods described herein may be combined in any combination, except mutually exclusive combinations. The implementations described herein can include various combinations and/or sub-combinations of the functions, components and/or features of the different implementations described. 

What is claimed is:
 1. A method of improving calculation efficiency for a battery fuel gauge, the method comprising: storing, by controlling circuitry of the battery fuel gauge in a memory of the battery fuel gauge, a library of equivalent circuit models representing a battery; determining a first operational mode of the battery based on a voltage across the battery at a first time; determining a second operational mode of the battery based on the voltage at a second time; defining, by the controlling circuitry, a first equivalent circuit model of the library of equivalent circuit models based on the first operational mode; defining a second equivalent circuit model of the library of equivalent circuit models based on the second operational mode; and calculating a state of charge of charge (SOC) of the battery using the first equivalent circuit model and the SOC using the second equivalent circuit model, the determining the first operational mode of the battery including determining an operational mode identifier, and the defining the first equivalent circuit model based on the first operational mode including searching the library of equivalent circuit models using the operational mode identifier.
 2. The method of claim 1, wherein the first operational mode is based on a high voltage load drawing variable current, the first operational mode includes a corresponding equivalent circuit model including a first resistance-current (RC) circuit and a second RC circuit.
 3. The method of claim 1, wherein the first operational mode is based on a variable voltage load, the first operational mode includes a corresponding equivalent circuit model including a resistance-current (RC) circuit.
 4. The method of claim 1, wherein the first operational mode is based on a variable voltage load, the first operational mode includes a corresponding equivalent circuit model including a resistor and a bias component.
 5. The method of claim 1, wherein the first operational mode is based on a low voltage load, the first operational mode includes a corresponding equivalent circuit including a resistor.
 6. The method of claim 1, wherein at least one of the equivalent circuit models includes a hysteresis component, and the hysteresis component is modeled as a open circuit voltage (OCV) calculation error.
 7. The method of claim 1, further comprising: measuring a terminal voltage of an equivalent battery during a discharge of the equivalent battery; determining a linear equation based on the measured terminal voltage; and calculating at least one parameter using a weighted least squared algorithm based on the linear equation, the calculating of the SOC of the battery is based on the at least one parameter.
 8. The method of claim 1, further comprising: benchmarking the SOC based on at least one of a coulomb counting error metric, an OCV-SOC error metric and a predicted time-to-voltage (TTV) error metric.
 9. A system configured to improve calculation efficiency for a battery fuel gauge, the system comprising: a data store of the battery fuel gauge configured to store a library of equivalent circuit models representing a battery; a model selection module of the battery fuel gauge configured to produce a first equivalent circuit model based on a first operational mode of the battery and a second equivalent circuit model based on a second operational mode of the battery, the first operational mode being determined based on a voltage across the battery at a first time, the second operational mode being determined based on the voltage across the battery at a second time; and a filter module of the battery fuel gauge configured to calculate an estimated state of charge (SOC) of the battery based on the first equivalent circuit model and the SOC using the second equivalent circuit model, wherein, in the first operational mode of the battery, the battery receives a variable current and, in the second operational mode of the battery, the battery receives a constant current.
 10. The system of claim 9, further comprising: an operational mode module configured to determine at least the first operational mode of the battery based on at least one of a current associated with the battery and a voltage associated with the battery.
 11. The system of claim 9, wherein the first operational mode is based on a high voltage load drawing variable current, the first operational mode includes a corresponding equivalent circuit model including a first resistance-current (RC) circuit and a second RC circuit.
 12. The system of claim 9, wherein the first operational mode is based on a variable voltage load, the first operational mode includes a corresponding equivalent circuit model including a resistance-current (RC) circuit.
 13. The system of claim 9, wherein the first operational mode is based on a variable voltage load, the first operational mode includes a corresponding equivalent circuit model including a resistor and a bias component.
 14. The system of claim 9, wherein the first operational mode is based on a low voltage load, the first operational mode includes a corresponding equivalent circuit including a resistor.
 15. The system of claim 9, wherein at least one of the equivalent circuit models includes a hysteresis component, and the hysteresis component is modeled as an open circuit voltage (OCV) calculation error.
 16. The system of claim 9, further comprising: a model estimation module configured to calculate at least one voltage drop model parameter based on the selected equivalent model representing the battery, wherein the estimated SOC is calculated based on the at least one voltage drop model parameter.
 17. The system of claim 9, further comprising a display configured to display the estimated SOC.
 18. A non-transitory computer readable medium including code segments for improving calculation efficiency for a battery fuel gauge that, when executed by a processor of the battery fuel gauge, cause the processor to: produce a first equivalent circuit model and a second equivalent circuit model from a library of equivalent circuit models stored in a memory of the battery fuel gauge, the first equivalent circuit model representing a battery based on a first operational mode of the battery and the second equivalent model representing the battery based on a second operational mode of the battery, the first operational mode being determined based on a voltage across the battery at a first time and the second operational mode being determined based on the voltage across the battery at a second time; and calculate a state of charge of charge (SOC) of the battery using the first equivalent circuit model and the SOC of the battery using the second equivalent circuit model, the producing the first equivalent model includes searching the library of equivalent circuit models using an operational mode name.
 19. The computer readable medium of claim 18, further including code segments that cause the processor to: calculate at least one voltage drop model parameter based on the first equivalent model, wherein the SOC is calculated based on the at least one voltage drop model parameter.
 20. The computer readable medium of claim 18, wherein at least one of the equivalent circuit models includes a hysteresis component, the code segments further cause the processor to: calculate at least one voltage drop model parameter based on the first equivalent model; and vary the at least one voltage drop model parameter to reduce an open circuit voltage (OCV) error indicating hysteresis.
 21. A method of improving calculation efficiency for a battery fuel gauge, the method comprising: storing, in a memory of the battery fuel gauge, a library of equivalent circuit models representing a battery; determining an operational mode of the battery based on a load associated with the battery; selecting one of the equivalent circuit models based on the determined operational mode; and calculating a state of charge of charge (SOC) of the battery using the selected equivalent circuit model, the determining the operational mode of the battery including determining an operational mode identification number, and the selecting one of the equivalent circuit models based on the determined operational mode including searching the library of equivalent circuit models using the operational mode identification number.
 22. The system of claim 9, wherein the battery fuel gauge is included in a battery management system, the battery management system being configured to disconnect a load on the battery based on the calculated estimated SOC. 